From 5cfe6db94c1449810a44660b299dba8e7e98e5c5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 六月 2021 14:43:39 +0800
Subject: [PATCH] 2021-06-10

---
 src/menu/components/share/actioncomponent/actionform/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx
index 674fafa..ba4c550 100644
--- a/src/menu/components/share/actioncomponent/actionform/index.jsx
+++ b/src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -138,7 +138,7 @@
   }
 
   getOptions = (_opentype, _intertype, _funcType, _pageTemplate, _procMode) => {
-    let _options = fromJS(actionTypeOptions[_opentype]).toJS() // 閫夐」鍒楄〃
+    let _options = actionTypeOptions[_opentype] ? fromJS(actionTypeOptions[_opentype]).toJS() : [] // 閫夐」鍒楄〃
     
     if (_opentype === 'innerpage') {         // 鏂伴〉闈紝鍙�夋ā鏉�(鑷畾涔夋椂锛屽彲濉叆澶栭儴閾炬帴)
       if (_pageTemplate === 'custom') {
@@ -528,7 +528,7 @@
                   getPopupContainer={() => document.getElementById('winter')}
                 >
                   {item.options.map((option, index) =>
-                    <Select.Option id={index} key={index} value={option.value || option.field}>
+                    <Select.Option id={index} key={option.value || option.field} value={option.value || option.field}>
                       {item.key === 'icon' && option.value ? <Icon type={option.value} /> : ''} {option.text || option.label}
                     </Select.Option>
                   )}
@@ -627,6 +627,7 @@
         if (!err) {
           values.uuid = card.uuid
           values.verify = card.verify || null
+          values.modal = card.modal || null
 
           if (values.show === 'icon' && !values.icon) {
             notification.warning({

--
Gitblit v1.8.0