From 426bf7e7b2d5c0448e40ae6265839be7d3f2c4a8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 8 May 2024 17:02:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E6=95=B0=E6=8D=AE=E9=80=89=E4=B8=AD?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/widget/deWidget/DeSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/frontend/src/components/widget/deWidget/DeSelect.vue b/core/frontend/src/components/widget/deWidget/DeSelect.vue index 23a5b060e6..df97f6665d 100644 --- a/core/frontend/src/components/widget/deWidget/DeSelect.vue +++ b/core/frontend/src/components/widget/deWidget/DeSelect.vue @@ -18,7 +18,7 @@ :key-word="keyWord" popper-class="coustom-de-select" :class="{'disabled-close': !inDraw && selectFirst && element.options.attrs.multiple, 'show-required-tips': showRequiredTips}" - :list="(element.options.attrs.showEmpty ? [{ text: '空数据', id: '_empty_$'}, ...data] : data)" + :list="(element.options.attrs.showEmpty ? [{ text: '空数据', id: '_empty_$'}, ...data.filter(ele => ele.id !== '_empty_$')] : data)" :flag="flag" :is-config="isConfig" :custom-style="customStyle" @@ -562,7 +562,7 @@ export default { } else if (!Array.isArray(this.resetKeyWordsVal) && this.resetKeyWordsVal) { tempData = [...new Set([this.resetKeyWordsVal, ...tempData])] } - this.filterInvalidValue(this.element.options.attrs.showEmpty ? [...tempData, '_empty_$'] : tempData) + this.filterInvalidValue(tempData) return tempData.map(item => { return { id: item,