Selaa lähdekoodia

fix: TableList add router watch

kokoroli 6 vuotta sitten
vanhempi
commit
a9b9614c4b
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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>