From 0bc514e9ae105611280d8cb3f3d7048207f31871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Thu, 15 Jan 2026 12:15:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=96=E9=83=A8=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=BF=87=E6=BB=A4=E5=88=87=E6=8D=A2=E6=97=B6=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E7=BD=AE=E7=A9=BA=E4=BC=98=E5=8C=96=20(#17789)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/visualization/OuterParamsSet.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/visualization/OuterParamsSet.vue b/core/core-frontend/src/components/visualization/OuterParamsSet.vue index 9bd069df17..0721c1be0b 100644 --- a/core/core-frontend/src/components/visualization/OuterParamsSet.vue +++ b/core/core-frontend/src/components/visualization/OuterParamsSet.vue @@ -474,9 +474,13 @@ const state = reactive({ const matchModeChange = baseFilter => { if ( baseFilter.matchMode === 'filter' && - !['0', '9', '2'].includes(baseFilter.filterSelected + '') + baseFilter.propValue && + baseFilter.propValue.length > 0 ) { - baseFilter.filterSelected = undefined + const matchedItem = baseFilter.propValue.find(item => item.id === baseFilter.filterSelected) + if (matchedItem && !['0', '9', '2'].includes(matchedItem.displayType.toString())) { + baseFilter.filterSelected = undefined + } } }