修复直接用url打开页面时,无法正确定位一级菜单的问题
This commit is contained in:
parent
05a2cf846e
commit
1b7938c167
|
@ -33,7 +33,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'() {
|
'$route'(to) {
|
||||||
|
this.activeIndex = to.matched[0].path;
|
||||||
this.handleSelect(this.activeIndex);
|
this.handleSelect(this.activeIndex);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue