From a8bbd82b4ea382633b8e8c4075290cd3eea50d45 Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期五, 16 八月 2024 16:39:07 +0800
Subject: [PATCH] 角色
---
src/store/modules/user/index.ts | 2 --
src/api/authority.ts | 3 ---
2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/api/authority.ts b/src/api/authority.ts
index 6e7240a..697a8b3 100644
--- a/src/api/authority.ts
+++ b/src/api/authority.ts
@@ -10,9 +10,6 @@
phoneNumber: string;
dept: any;
deptName:string;
- resources: any;
- knowledges: any;
- dialogs: any;
createTime: string;
status: string;
psw:string;
diff --git a/src/store/modules/user/index.ts b/src/store/modules/user/index.ts
index 7bb51c3..1ee0211 100644
--- a/src/store/modules/user/index.ts
+++ b/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) {
--
Gitblit v1.8.0