Commit dbd2a435 by 姜雷

跳转路由后收起顶部菜单

parent 7f0c400a
......@@ -115,6 +115,11 @@ export default {
this.style = 'left: 0;';
}
},
watch: {
$route() {
this.toggleSubmenus(false);
},
},
methods: {
toggleSubmenus(visiable) {
this.showSubMenus = visiable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment