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

回退

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