From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 十一月 2020 21:56:42 +0800
Subject: [PATCH] 2020-11-26

---
 src/menu/actioncomponent/index.jsx |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/menu/actioncomponent/index.jsx b/src/menu/actioncomponent/index.jsx
index 56c3f6d..aab64b2 100644
--- a/src/menu/actioncomponent/index.jsx
+++ b/src/menu/actioncomponent/index.jsx
@@ -25,7 +25,6 @@
 class ActionComponent extends Component {
   static propTpyes = {
     type: PropTypes.string,          // 鑿滃崟绫诲瀷锛屼富琛ㄦ垨瀛愯〃
-    plus: PropTypes.any,             // 鏄惁瀛樺湪娣诲姞鎸夐挳锛屽�间负false鏃堕殣钘�
     config: PropTypes.object,        // 鑿滃崟閰嶇疆淇℃伅
     setSubConfig: PropTypes.func,    // 璁剧疆瀛愰厤缃俊鎭�
     updateaction: PropTypes.func     // 鑿滃崟閰嶇疆鏇存柊
@@ -177,7 +176,17 @@
       <p>{this.state.dict['model.tooltip.func.outface']}</p>
     </div>
 
-    let menulist = menu.fstMenuList ? menu.fstMenuList : []
+    let menulist = sessionStorage.getItem('fstMenuList')
+    if (menulist) {
+      try {
+        menulist = JSON.parse(menulist)
+      } catch {
+        menulist = []
+      }
+    } else {
+      menulist = []
+    }
+    
     let modules = this.getModules(menu.components, config.uuid)
 
     this.setState({
@@ -409,13 +418,12 @@
   }
 
   render() {
-    const { config, plus } = this.props
+    const { config } = this.props
     const { actionlist, visible, card, dict, profVisible } = this.state
 
     return (
-      <div className="model-menu-action-list">
+      <div className={'model-menu-action-list length' + actionlist.length}>
         <DragElement
-          plus={plus}
           list={actionlist}
           handleList={this.handleList}
           handleMenu={this.handleAction}

--
Gitblit v1.8.0