Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,7 @@ export default {
const pageSchema = getSchema()
const stateName = state.variable.replace(`${CONSTANTS.STATE}`, '')
const staticData = state.variableContent.map(({ _id, ...other }) => other)

updateSchema({ ...pageSchema.state, [stateName]: staticData })

updateSchema({ state: { ...pageSchema.state, [stateName]: staticData } })
// 这里在setup生命周期函数内部处理用户真实环境中的数据源请求
genRemoteMethodToLifeSetup(stateName, state.dataSouce, pageSchema)
}
Expand Down