mod: 修改友好提示

This commit is contained in:
张传龙 2022-06-19 14:50:50 +08:00
parent f88b4f52a1
commit 8ae4046285

View File

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