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 @@