Merge branch 'dev' of https://git.cloud.tencent.com/joylink/jl-nclient into dev
This commit is contained in:
commit
6e8b69869b
@ -107,7 +107,6 @@ export default {
|
||||
if (val.path === '/orderauthor/rules/manage') {
|
||||
this.$refs.keMenu.activeIndex = val.path;
|
||||
}
|
||||
// this.refreshRoute(val);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -121,20 +120,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 刷新路由
|
||||
refreshRoute(val) {
|
||||
let routePath = '';
|
||||
if (val.path.indexOf('design/userlist') >= 0) {
|
||||
routePath = '/design/userlist/home';
|
||||
} else if (val.path.includes('design/lesson') || val.path.includes('design/script') || val.path.includes('design/runPlan') || val.path.includes('design/mapPreview')) {
|
||||
routePath = '/design/home';
|
||||
} else {
|
||||
routePath = this.$route.path;
|
||||
}
|
||||
setTimeout(() => { // 路由跳转
|
||||
this.$refs.keMenu.activeIndex = routePath;
|
||||
}, 100);
|
||||
},
|
||||
toggleSideBar() {
|
||||
this.$store.dispatch('ToggleSideBar');
|
||||
},
|
||||
@ -166,7 +151,6 @@ export default {
|
||||
return false;
|
||||
},
|
||||
handleSelect(index, indexPath) {
|
||||
console.log(index, '====');
|
||||
setTimeout(() => { // 路由跳转
|
||||
this.$refs.keMenu.activeIndex = index;
|
||||
}, 100);
|
||||
|
Loading…
Reference in New Issue
Block a user