mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud-Vue3.git
synced 2025-09-04 03:35:33 +00:00
修复用户无角色时无法登陆的问题
This commit is contained in:
@@ -41,7 +41,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