Skip to content

Commit a9b9614

Browse files
committed
fix: TableList add router watch
1 parent a9e5710 commit a9b9614

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/views/list/TableList.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ export default {
3939
this.record = ''
4040
this.currentComponet = 'List'
4141
}
42+
},
43+
watch: {
44+
'$route.path' () {
45+
this.record = ''
46+
this.currentComponet = 'List'
47+
}
4248
}
4349
}
4450
</script>

0 commit comments

Comments
 (0)