From 08cce3334a2dc81d690b518136b0aaea64e48b0b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 14 六月 2023 09:55:50 +0800
Subject: [PATCH] 2023-06-14

---
 src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
index 323f052..29f51db 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -119,6 +119,14 @@
               })
               reject()
               return
+            } else if (/,,/ig.test(values.dataresource)) {
+              notification.warning({
+                top: 92,
+                message: '鏁版嵁婧愪腑锛屼笉鍙嚭鐜拌繛缁殑鑻辨枃閫楀彿锛�,,锛�',
+                duration: 5
+              })
+              reject()
+              return
             }
 
             let error = Utils.verifySql(values.dataresource)
@@ -442,7 +450,7 @@
           {config.Template === 'CommonTable' ? <Col span={8}>
             <Form.Item label="鎸夐挳鍥哄畾">
               {getFieldDecorator('actionfixed', {
-                initialValue: setting.actionfixed === 'true' || setting.actionfixed === true ? 'true' : 'false'
+                initialValue: setting.actionfixed === 'true' ? 'true' : 'false'
               })(
               <Radio.Group>
                 <Radio value="true">鏄�</Radio>

--
Gitblit v1.8.0