From e771ba19739b537526ddb9a6fb2499b58a45a8ab Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 07 七月 2020 11:47:56 +0800
Subject: [PATCH] 2020-07-07

---
 src/templates/sharecomponent/actioncomponent/index.jsx |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/index.jsx b/src/templates/sharecomponent/actioncomponent/index.jsx
index a628cd5..ab59331 100644
--- a/src/templates/sharecomponent/actioncomponent/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/index.jsx
@@ -97,15 +97,18 @@
       <p>{this.state.dict['model.tooltip.func.outface']}</p>
     </div>
 
-    let menulist = menu.fstMenuList.map(item => {
-      return {
-        value: item.MenuID,
-        label: item.text,
-        isLeaf: false
-      }
-    })
+    let menulist = []
+    if (menu.fstMenuList) {
+      menulist = menu.fstMenuList.map(item => {
+        return {
+          value: item.MenuID,
+          label: item.text,
+          isLeaf: false
+        }
+      })
+    }
 
-    if (card.linkmenu && card.linkmenu.length > 0) {
+    if (menu.fstMenuList && card.linkmenu && card.linkmenu.length > 0) {
       let _param = {
         func: 'sPC_Get_FunMenu',
         ParentID: card.linkmenu[0],

--
Gitblit v1.8.0