fix lint no-prototype-builtins

This commit is contained in:
Johann150 2022-07-04 16:39:04 +02:00
parent a5c3fcea6e
commit d748ba2c51
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
4 changed files with 6 additions and 5 deletions

View file

@ -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;
}
},