From c659560c7ee8d8f8278b938421de13bf65d1e1b1 Mon Sep 17 00:00:00 2001
From: ludc <ludc@vci-tech.com>
Date: 星期三, 15 一月 2025 14:28:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/plt-web/plt-web-ui/src/store/modules/user.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/store/modules/user.js b/Source/plt-web/plt-web-ui/src/store/modules/user.js
index 3a33a35..fc95d95 100644
--- a/Source/plt-web/plt-web-ui/src/store/modules/user.js
+++ b/Source/plt-web/plt-web-ui/src/store/modules/user.js
@@ -244,7 +244,6 @@
       return new Promise((resolve) => {
         getButtons().then(res => {
           const data = res.data.data;
-          console.log('getButton',data)
           commit('SET_PERMISSION', data);
           resolve();
         })
@@ -303,7 +302,14 @@
         let children = {};
         if (item.children && item.children.length > 0) {
           item.children.forEach(child => {
-            Vue.set(children, child.code, true);
+            // const childObject = {
+            //   [child.code]: true,
+            //   source: child.source
+            // };
+            // Object.assign(children, childObject);
+            children[child.code] = {
+              source: child.source
+            }
           });
         }
         Vue.set(permission_new, item.id, children);

--
Gitblit v1.9.3