liudong
2024-08-21 b8c8c344ca7adf43be59bacaebe2c3f3b682065e
src/store/modules/user/index.ts
@@ -76,7 +76,8 @@
          name: res.data.nickname,
          email: res.data.email,
        };
        if(res.data.roles && res.data.roles.length>0)
        if(res.data?.roles.length>0)
            this.resources=res.data.roles[0].resources;
            setUserInfo(JSON.stringify(userInfo));
            setUserResources(JSON.stringify(this.resources))