Browse Source

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

RuoYi 3 years ago
parent
commit
9293d19c26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/store/modules/user.js

+ 1 - 1
src/store/modules/user.js

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