From d0db810c9b1c67b8eed03c7f7be6eb4a34a8dbc7 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 06 十二月 2024 17:05:25 +0800
Subject: [PATCH] permissions合并

---
 src/store/modules/user.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 176152e..31651a8 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -63,7 +63,8 @@
       }
       const userInfo = await getInfo()
       const appInfo = await getAppInfo()
-      this.permissions = userInfo.permissions
+      this.permissions = userInfo.permissions.concat(appInfo.permissions)
+      userInfo.permissions = userInfo.permissions.concat(appInfo.permissions)
       this.roles = userInfo.roles
       this.user = userInfo.user
       this.isSetUser = true

--
Gitblit v1.9.3