fix(hooks): 修复toLogin函数导致登录重定向地址过多

This commit is contained in:
Soybean
2021-09-16 18:43:52 +08:00
parent c84c37d1a6
commit b4adf678a4
4 changed files with 26 additions and 16 deletions

View File

@ -52,7 +52,7 @@ function handleRouterAction(to: RouteLocationNormalized, from: RouteLocationNorm
],
// 登录状态进入需要登录权限的页面,直接通行
[
needLogin && isLogin,
isLogin && needLogin,
() => {
next();
}