This commit is contained in:
chenjianxing 2020-05-14 13:21:43 +08:00
commit ca47e1d5ff
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@
}
},
watch: {
'$route'() {
'$route'(to) {
this.activeIndex = to.matched[0].path;
this.handleSelect(this.activeIndex);
}
},