src/store/modules/user/index.ts
@@ -78,8 +78,6 @@ }; 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) {