fix lint no-prototype-builtins
This commit is contained in:
parent
a5c3fcea6e
commit
d748ba2c51
4 changed files with 6 additions and 5 deletions
|
|
@ -98,7 +98,7 @@ export default defineComponent({
|
|||
|
||||
created() {
|
||||
for (const item in this.form) {
|
||||
this.values[item] = this.form[item].hasOwnProperty('default') ? this.form[item].default : null;
|
||||
this.values[item] = this.form[item].default ?? null;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue