From a6c1e16339157d4cb662f2a24282f2897be66466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 16 Jun 2022 15:21:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8F=B3=E5=87=BB=E8=B5=84=E4=BA=A7=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E5=87=BA=E7=8E=B0=E7=A9=BA=E7=99=BDtag?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TagSearch/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/TagSearch/index.vue b/src/components/TagSearch/index.vue index fb3b75592..9614707e5 100644 --- a/src/components/TagSearch/index.vue +++ b/src/components/TagSearch/index.vue @@ -124,6 +124,7 @@ export default { // 获取url中的查询条件,判断是不是包含在当前查询条件里 checkInTableColumns() { const searchFieldOptions = {} + const queryInfoValues = this.options.map((i) => i.value) const routeQuery = this.getUrlQuery ? this.$route?.query : {} const routeQueryKeysLength = Object.keys(routeQuery).length if (routeQueryKeysLength < 1) return searchFieldOptions @@ -141,7 +142,9 @@ export default { continue } - searchFieldOptions[key] = this.getInQueryInfoFields(key, value) + if (queryInfoValues.includes(key)) { + searchFieldOptions[key] = this.getInQueryInfoFields(key, value) + } } return searchFieldOptions },