修复直接用url打开页面时,无法正确定位一级菜单的问题

This commit is contained in:
q4speed 2020-05-14 13:13:42 +08:00
parent 05a2cf846e
commit 1b7938c167
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);
}
},