fix: 🐛 系统配置中switch的文件
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
:key="index + 6"
|
:key="index + 6"
|
||||||
v-else-if="item.form_item_type_label === 'switch'"
|
v-else-if="item.form_item_type_label === 'switch'"
|
||||||
v-model="formData[item.key]"
|
v-model="formData[item.key]"
|
||||||
|
:inactive-value="false"
|
||||||
active-color="#13ce66"
|
active-color="#13ce66"
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
>
|
>
|
||||||
@@ -296,7 +297,7 @@ const getInit = () => {
|
|||||||
if ([5, 12, 14].indexOf(item.form_item_type) !== -1) {
|
if ([5, 12, 14].indexOf(item.form_item_type) !== -1) {
|
||||||
_formData[key] = [];
|
_formData[key] = [];
|
||||||
} else {
|
} else {
|
||||||
_formData[key] = undefined;
|
_formData[key] = item.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (item.form_item_type_label === 'array') {
|
if (item.form_item_type_label === 'array') {
|
||||||
|
|||||||
Reference in New Issue
Block a user