release(custom): i
This commit is contained in:
@@ -11,6 +11,9 @@ export function createPermissionGuard(router) {
|
||||
return { path: 'login', query: { ...to.query, redirect: to.path } }
|
||||
}
|
||||
|
||||
/** 单点登录的情况 */
|
||||
if (to.query.tk) return true
|
||||
|
||||
/** 有token的情况 */
|
||||
if (to.path === '/login') return { path: '/' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user