修复用户无角色时无法登陆的问题
This commit is contained in:
@ -40,7 +40,7 @@ const useUserStore = defineStore(
|
|||||||
this.roles = res.roles
|
this.roles = res.roles
|
||||||
this.permissions = res.permissions
|
this.permissions = res.permissions
|
||||||
} else {
|
} else {
|
||||||
this.setRoutes = ['ROLE_DEFAULT']
|
this.roles = ['ROLE_DEFAULT']
|
||||||
}
|
}
|
||||||
this.name = user.userName
|
this.name = user.userName
|
||||||
this.avatar = avatar;
|
this.avatar = avatar;
|
||||||
|
Reference in New Issue
Block a user