From 096f5919af7b3c880d7dd7bf4aea0c3868f8f0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Fri, 28 Apr 2023 11:05:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=ADswitch=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/config/components/formContent.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/views/system/config/components/formContent.vue b/web/src/views/system/config/components/formContent.vue index d00c3f6..2524b8a 100644 --- a/web/src/views/system/config/components/formContent.vue +++ b/web/src/views/system/config/components/formContent.vue @@ -85,6 +85,7 @@ :key="index + 6" v-else-if="item.form_item_type_label === 'switch'" v-model="formData[item.key]" + :inactive-value="false" active-color="#13ce66" inactive-color="#ff4949" > @@ -296,7 +297,7 @@ const getInit = () => { if ([5, 12, 14].indexOf(item.form_item_type) !== -1) { _formData[key] = []; } else { - _formData[key] = undefined; + _formData[key] = item.value; } } if (item.form_item_type_label === 'array') {