浏览代码

fix 点击问题

wolyshaw 4 年之前
父节点
当前提交
dd9fefe332
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/components/filter-search/index.vue

+ 8 - 2
src/components/filter-search/index.vue

@@ -81,6 +81,12 @@ export default {
   mounted() {
     console.log(this.activeItems)
   },
+  watch: {
+    $route() {
+      this.$emit('setTimeForSearch')
+      this.$emit('reload', this.show)
+    },
+  },
   methods: {
     desced(item) {
       return item.name ? `仅显示: ${item.name}` : this.desc
@@ -101,7 +107,7 @@ export default {
           }
         })
         this.$emit('setTimeForSearch')
-        this.$emit('reload', true)
+        // this.$emit('reload', true)
       }
     },
     close() {
@@ -117,7 +123,7 @@ export default {
           ...keys
         }
       })
-      this.$emit('reload')
+      // this.$emit('reload')
     }
   }
 }