This commit is contained in:
fan 2019-11-15 09:43:12 +08:00
commit 6e8b69869b

View File

@ -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);