From b39290a3bc3bb1d8cf80ff44fb07fd089092dc0f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 21 Apr 2021 20:35:43 +0800
Subject: [PATCH] 实时警情,包裹,违禁品,体温,健康码页面清空按钮,清空this.$route.query内容

---
 src/views/healthcode/healthcode.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/views/healthcode/healthcode.vue b/src/views/healthcode/healthcode.vue
index 9536607..6cb2be0 100644
--- a/src/views/healthcode/healthcode.vue
+++ b/src/views/healthcode/healthcode.vue
@@ -232,7 +232,10 @@
       beforeOpen(done, type) {
       },
       searchReset() {
+        //清空搜索框中的内容
         this.query = {};
+        //清空this.$route.query
+        this.$router.push({ query: {} });
         this.onLoad(this.page);
       },
       searchChange(params, done) {

--
Gitblit v1.9.3