fix(projects): 修复没有子页面的路由写法问题

This commit is contained in:
Soybean
2021-10-20 18:45:02 +08:00
parent 358d4e8a19
commit b80c224664
10 changed files with 154 additions and 71 deletions

View File

@ -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;