:art:优化一哈
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward
2024-08-22 15:37:21 +08:00
parent 4fa123baa8
commit 45d83da5c7
6 changed files with 4843 additions and 2 deletions

View File

@@ -37,7 +37,6 @@ export async function addDynamicRoutes() {
// 有token的情况
const userStore = useUserStore()
try {
const permissionStore = usePermissionStore()
!userStore.id && (await userStore.getUserInfo())
@@ -49,8 +48,8 @@ export async function addDynamicRoutes() {
router.addRoute(NOT_FOUND_ROUTE)
} catch (error) {
console.error(error)
$message.error('初始化用户信息失败: ' + error)
userStore.logout()
$message.error('初始化用户信息失败: ' + error)
}
}