修复用户无角色时无法登陆的问题

This commit is contained in:
hfruiyun
2022-06-15 08:55:15 +08:00
parent 4095f0e803
commit e5a08c6119

View File

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