From 3ac76495ae24b8b4d4ecb026b2f87a7721c4659d Mon Sep 17 00:00:00 2001 From: zhoumingfa Date: Sun, 23 Feb 2025 23:09:10 +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-javascript/src/components/support/dict-select/index.vue b/smart-admin-web-javascript/src/components/support/dict-select/index.vue index 637c2705..58e9b187 100644 --- a/smart-admin-web-javascript/src/components/support/dict-select/index.vue +++ b/smart-admin-web-javascript/src/components/support/dict-select/index.vue @@ -102,17 +102,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); }