mirror of
https://github.com/kailong321200875/vue-element-plus-admin.git
synced 2024-11-27 01:19:56 +08:00
fix: fix error message about "no-prototype-builtins" after run project
This commit is contained in:
parent
ed301a5b9d
commit
64ec1206e8
@ -161,7 +161,7 @@ export const initModel = (schema: FormSchema[], formModel: Recordable) => {
|
||||
// 如果 schema 对应的 field 不存在,则删除 model 中的对应的 field
|
||||
for (let i = 0; i < schema.length; i++) {
|
||||
const key = schema[i].field
|
||||
if (!model.hasOwnProperty(key)) {
|
||||
if (!Object.prototype.hasOwnProperty.call(model, key)) {
|
||||
delete model[key]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user