修复BUG: 系统配置,值为false时的bug

pull/93/head
猿小天 2023-04-08 22:38:52 +08:00
parent 0228a0b927
commit 668ce3e9b3
1 changed files with 3 additions and 2 deletions

View File

@ -84,6 +84,7 @@
:key="index"
v-else-if="item.form_item_type_label === 'switch'"
v-model="form[item.key]"
:inactive-value="false"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
@ -310,7 +311,7 @@ export default {
if ([5, 12, 14].indexOf(item.form_item_type) !== -1) {
form[key] = []
} else {
form[key] = undefined
form[key] = item.value
}
}
if (item.form_item_type_label === 'array') {
@ -321,7 +322,7 @@ export default {
})
}
}
this.form = JSON.parse(JSON.stringify(form))
this.form = Object.assign({}, form)
})
},
//