Commit 98122498 by caoyanzhi

update: 菜单框架

parent ef8f5f94
......@@ -127,7 +127,9 @@ export default {
}
return path;
});
this.$router.addRoutes([{ path: '/', redirect: '/' + path }]);
if (path) {
this.$router.addRoutes([{ path: '/', redirect: '/' + path }]);
}
},
onShowLoading(loading) {
if (loading) {
......
......@@ -74,11 +74,7 @@ router.beforeEach((to, from, next) => {
} else {
baseUrl = host;
}
if (to.path == '/') {
next({ path: '/login' });
} else {
next();
}
next();
});
Vue.prototype.$buttonCode = {
multipleAssign: 'multipleAssign',
......
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