From 871d80dc1e813c0f20bd3633979b085395bf7525 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期五, 16 八月 2024 18:06:40 +0800
Subject: [PATCH] fix: 添加修改
---
src/store/modules/user/index.ts | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts
index faa226d..1ee0211 100644
--- a/src/store/modules/user/index.ts
+++ b/src/store/modules/user/index.ts
@@ -76,7 +76,8 @@
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;
setUserInfo(JSON.stringify(userInfo));
setUserResources(JSON.stringify(this.resources))
for (const r of this.resources) {
--
Gitblit v1.8.0