yinbangzhong
2024-08-16 f434ce3b98b921e6437eb49eacf5567b4167c69b
src/store/modules/user/index.ts
@@ -78,8 +78,8 @@
        };
        if(res.data.roles && res.data.roles.length>0)
            this.resources=res.data.roles[0].resources;
        setUserInfo(JSON.stringify(userInfo));
        setUserResources(JSON.stringify(this.resources))
            setUserInfo(JSON.stringify(userInfo));
            setUserResources(JSON.stringify(this.resources))
        for (const r of this.resources) {
          if (r.menuType == 0) {
            return r.component