From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

---
 src/templates/zshare/modalform/modaleditable/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/templates/zshare/modalform/modaleditable/index.jsx b/src/templates/zshare/modalform/modaleditable/index.jsx
index 5b5a0a2..7944d0c 100644
--- a/src/templates/zshare/modalform/modaleditable/index.jsx
+++ b/src/templates/zshare/modalform/modaleditable/index.jsx
@@ -134,7 +134,7 @@
     let fields = []
     let dataItem = data[0] || ''
 
-    if (type === 'select' || type === 'radio') {
+    if (type === 'select' || type === 'radio' || type === 'link') {
       fields = linkSubFields.map(cell => {
         return {
           title: cell.label,
@@ -233,7 +233,7 @@
           if (isNaN(val)) {
             val = ''
           }
-        } catch {
+        } catch (e) {
           val = ''
         }
       } else {
@@ -349,7 +349,7 @@
 
     let dataItem = dataSource ? dataSource[0] : ''
 
-    if (type === 'select' || type === 'radio') {
+    if (type === 'select' || type === 'radio' || type === 'link') {
       fields = linkSubFields.map(field => {
         return {
           title: field.label,

--
Gitblit v1.8.0