src/store/modules/user/index.ts
@@ -76,7 +76,10 @@ name: res.data.nickname, email: res.data.email, }; this.resources=res.data.resources; if(res.data.roles && res.data.roles.length>0) this.resources=res.data.roles[0].resources; else this.resources=res.data.resources; setUserInfo(JSON.stringify(userInfo)); setUserResources(JSON.stringify(this.resources)) for (const r of this.resources) {