feat: 角色管理

This commit is contained in:
kailong321200875
2023-08-05 20:34:55 +08:00
parent c72b3a33aa
commit 47016a535f
13 changed files with 398 additions and 106 deletions

View File

@@ -146,7 +146,7 @@ export const initModel = (schema: FormSchema[], formModel: Recordable) => {
schema.map((v) => {
if (v.remove) {
delete model[v.field]
} else if (v.component && v.component !== 'Divider') {
} else if (v.component !== 'Divider') {
// const hasField = Reflect.has(model, v.field)
const hasField = get(model, v.field)
// 如果先前已经有值存在,则不进行重新赋值,而是采用现有的值