mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-27 03:43:44 +08:00
fix(hooks): 修复toLogin函数导致登录重定向地址过多
This commit is contained in:
@@ -52,7 +52,7 @@ function handleRouterAction(to: RouteLocationNormalized, from: RouteLocationNorm
|
||||
],
|
||||
// 登录状态进入需要登录权限的页面,直接通行
|
||||
[
|
||||
needLogin && isLogin,
|
||||
isLogin && needLogin,
|
||||
() => {
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user