mod: 修改友好提示
This commit is contained in:
parent
f88b4f52a1
commit
8ae4046285
@ -22,7 +22,7 @@ export function createPermissionGuard(router) {
|
||||
await userStore.getUserInfo().catch((error) => {
|
||||
removeToken()
|
||||
toLogin()
|
||||
$message.error(`【${error.code}】 ${error.message}`)
|
||||
$message.error(error.message || '获取用户信息失败!')
|
||||
return
|
||||
})
|
||||
const accessRoutes = permissionStore.generateRoutes(userStore.role)
|
||||
|
Loading…
Reference in New Issue
Block a user