From 3852a92ab377c217f5bb157436a72b01443a7526 Mon Sep 17 00:00:00 2001 From: zxj Date: Wed, 3 Dec 2025 17:40:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BF=94=E5=9B=9E=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E6=97=B6=E5=85=88=E8=A7=A6=E5=8F=91=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E5=86=8D=E6=89=A7=E8=A1=8C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 98567f27..e101f1d8 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -897,7 +897,8 @@ export default { watch: { "$route.query.keyword": { handler(newval) { - if (newval) { + if (newval && this.keyWord != newval) { + this.keyWord = newval; this.search(true); } }, @@ -1764,9 +1765,6 @@ export default { }, // 查询 search(num = false) { - if (this.$route.query.keyword) { - this.keyWord = this.$route.query.keyword; - } // 记录查询的数据 if (this.keyWord) { apiSearchterm.save({ keyword: this.keyWord, type: 3 });