From 836722dd114fa35967a5e96be96ba4503ebf8e1d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 29 十二月 2022 17:29:11 +0800
Subject: [PATCH] 2022-12-29

---
 src/menu/components/module/account/index.jsx |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/module/account/index.jsx b/src/menu/components/module/account/index.jsx
index e1d2f18..db814a9 100644
--- a/src/menu/components/module/account/index.jsx
+++ b/src/menu/components/module/account/index.jsx
@@ -96,9 +96,27 @@
   }
 
   updateWrap = (res) => {
-    let _card = {...this.state.card, wrap: res}
+    if (res.linkmenu) {
+      let list = null
+      try {
+        list = JSON.parse(sessionStorage.getItem('thdMenuList')) || []
+      } catch (e) {
+        list = []
+      }
 
-    this.updateComponent(_card)
+      let id = res.linkmenu[res.linkmenu.length - 1]
+      res.MenuID = id
+
+      list.forEach(item => {
+        if (item.MenuID === id) {
+          res.MenuName = item.MenuName
+          res.MenuNo = item.MenuNo
+          res.tabType = item.type
+        }
+      })
+    }
+
+    this.updateComponent({...this.state.card, wrap: res})
   }
 
   render() {

--
Gitblit v1.8.0