Commit 29f59816 authored by Your Name's avatar Your Name

回退

parent d76a8d99
......@@ -111,13 +111,13 @@ router.beforeEach((to, from, next) => {
}else{
if (!user && !whiteList.includes(to.path)) { // 通过vuex state获取当前的token是否存在
console.log(to)
if (to.path === '/guide') {
next(to.path)
} else {
// if (to.path === '/guide') {
// next(to.path)
// } else {
next({
path: '/login',
})
}
// }
}else {
next();
}
......
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