mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-12 11:43:42 +08:00
fix(projects): 修复没有子页面的路由写法问题
This commit is contained in:
@@ -15,6 +15,7 @@ export function setRouterCacheName(component: Component, name?: string) {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取登录后的重定向地址
|
||||
export function getLoginRedirectUrl() {
|
||||
const path = router.currentRoute.value.fullPath as EnumRoutePath;
|
||||
const redirectUrl = path === EnumRoutePath.root ? undefined : path;
|
||||
|
||||
Reference in New Issue
Block a user