diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 98567f27..79daae12 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 }); @@ -1780,9 +1778,9 @@ export default { } if (this.keyWord != this.queryCondition.keyWord) { this.queryCondition.keyWord = this.keyWord; - this.tagList.forEach((tag, index) => { - this.tagsClose(tag, index); - }); + // this.tagList.forEach((tag, index) => { + // this.tagsClose(tag, index); + // }); } if (this.queryCondition.majorType == 0) { this.queryCondition.majorType = "";