|
@@ -80,6 +80,12 @@ router.beforeEach(async (to, from, next) => {
|
|
|
next()
|
|
next()
|
|
|
return false
|
|
return false
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ if (!token) {
|
|
|
|
|
+ next({
|
|
|
|
|
+ path: '/slogin'
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
if (to.query.token) {
|
|
if (to.query.token) {
|
|
|
afterLogin(to.query.token)
|
|
afterLogin(to.query.token)
|
|
|
} else {
|
|
} else {
|
|
@@ -90,12 +96,6 @@ router.beforeEach(async (to, from, next) => {
|
|
|
fullPageTool.check(to)
|
|
fullPageTool.check(to)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (!token) {
|
|
|
|
|
- next({
|
|
|
|
|
- path: '/slogin'
|
|
|
|
|
- })
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
// 整页路由处理
|
|
// 整页路由处理
|
|
|
if (to.meta.fullpage) {
|
|
if (to.meta.fullpage) {
|
|
|
to.matched = [to.matched[to.matched.length - 1]]
|
|
to.matched = [to.matched[to.matched.length - 1]]
|