Commit 2f83650f authored by 耿迪迪's avatar 耿迪迪

刷新问题

parent 4cd6c6b9
......@@ -31,9 +31,8 @@ router.beforeEach((to, from, next) => {
});
// 隐藏
origin.children[0].hidden = true;
console.log("from-------------",from)
// 挑战
if(from.path=='/login' || from.path=='/'){
if(to.path=="/index"){
if (accessRoutes[0].children) {
next({ ...accessRoutes[0].children[0] });
}
......
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