From 66147e47da8033f51ff9b7cc3476e73e0c0a0928 Mon Sep 17 00:00:00 2001 From: zhoumingfa Date: Sun, 23 Feb 2025 23:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9DictSelect=E7=BB=84=E4=BB=B6o?= =?UTF-8?q?nChange=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/support/dict-select/index.vue | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/smart-admin-web-typescript/src/components/support/dict-select/index.vue b/smart-admin-web-typescript/src/components/support/dict-select/index.vue index 372b5b10..d7557f27 100644 --- a/smart-admin-web-typescript/src/components/support/dict-select/index.vue +++ b/smart-admin-web-typescript/src/components/support/dict-select/index.vue @@ -97,17 +97,7 @@ const emit = defineEmits(['update:value', 'change']); function onChange(value) { - if (!value) { - emit('update:value', []); - emit('change', []); - return; - } - if (Array.isArray(value)) { - emit('update:value', value); - emit('change', value); - } else { - emit('update:value', [value]); - emit('change', [value]); - } + emit('update:value', value); + emit('change', value); }