From 88ae28cf5a9be081f92d629da4911fbed09b91d2 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Tue, 16 Dec 2025 15:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E5=85=B8=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=95=B0=E5=AD=97=E7=B1=BB=E5=9E=8B=E5=80=BC=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictTag/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 5e70502..71f0710 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -49,6 +49,7 @@ const props = defineProps({ const values = computed(() => { if (props.value === null || typeof props.value === 'undefined' || props.value === '') return [] + if (typeof props.value === 'number' || typeof props.value === 'boolean') return [props.value] return Array.isArray(props.value) ? props.value.map(item => '' + item) : String(props.value).split(props.separator) })