mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-09-27 14:52:40 +00:00
修复用户无角色时无法登陆的问题
This commit is contained in:
@@ -40,7 +40,7 @@ const useUserStore = defineStore(
|
||||
this.roles = res.roles
|
||||
this.permissions = res.permissions
|
||||
} else {
|
||||
this.setRoutes = ['ROLE_DEFAULT']
|
||||
this.roles = ['ROLE_DEFAULT']
|
||||
}
|
||||
this.name = user.userName
|
||||
this.avatar = avatar;
|
||||
|
Reference in New Issue
Block a user