From 5e7dd66971d3f085ac4e97c75f1736ce44cba389 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Sun, 14 Sep 2025 15:49:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/Select.vue | 21 +++++--------- src/views/device/deviceGroup/form.vue | 38 ++++++++++++++++++-------- src/views/device/deviceGroup/index.vue | 7 +++-- 3 files changed, 39 insertions(+), 27 deletions(-) diff --git a/src/components/DictTag/Select.vue b/src/components/DictTag/Select.vue index b47aa9a..7f2c247 100644 --- a/src/components/DictTag/Select.vue +++ b/src/components/DictTag/Select.vue @@ -1,13 +1,6 @@ @@ -52,11 +45,11 @@ const dictList = ref([]); async function loadDictData() { if (props.dictType) { - const res = await getDicts(props.dictType); - dictList.value = res.data.map((p: any) => ({ - label: p.label, - value: p.value - })); + const res = await getDicts(props.dictType); + dictList.value = res.data.map((p: any) => ({ + label: p.label, + value: p.value + })); } } diff --git a/src/views/device/deviceGroup/form.vue b/src/views/device/deviceGroup/form.vue index 4321ef4..3f78785 100644 --- a/src/views/device/deviceGroup/form.vue +++ b/src/views/device/deviceGroup/form.vue @@ -1,10 +1,16 @@