fix: 控制台加权限,登录跳转资产信息
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m19s

This commit is contained in:
sexygoat
2026-04-28 12:03:42 +08:00
parent fb10b72760
commit 1ba662de0a
2 changed files with 73 additions and 48 deletions

View File

@@ -8,7 +8,7 @@ import { useI18n } from 'vue-i18n'
import { ElNotification } from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus'
import { useUserStore } from '@/store/modules/user'
import { HOME_PAGE } from '@/router/routesAlias'
import { HOME_PAGE, RoutesAlias } from '@/router/routesAlias'
import AppConfig from '@/config'
import { AuthService } from '@/api/modules'
import { ApiStatus } from '@/utils/http/status'
@@ -146,9 +146,8 @@ export function useLogin() {
// 等待数据持久化完成
await new Promise((resolve) => setTimeout(resolve, 100))
// 跳转到重定向页面或首页
const redirectPath = getRedirectPath(route)
await router.push(redirectPath || HOME_PAGE)
// 跳转到资产信息页面
await router.push(RoutesAlias.AssetInformation)
}
/**