Эх сурвалжийг харах

fix: TableList add router watch

kokoroli 6 жил өмнө
parent
commit
a9b9614c4b

+ 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>