Browse Source

fix: TableList add router watch

kokoroli 6 năm trước cách đây
mục cha
commit
a9b9614c4b
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/views/list/TableList.vue

+ 6 - 0
src/views/list/TableList.vue

@@ -39,6 +39,12 @@ export default {
       this.record = ''
       this.currentComponet = 'List'
     }
+  },
+  watch: {
+    '$route.path' () {
+      this.record = ''
+      this.currentComponet = 'List'
+    }
   }
 }
 </script>