From 8a0b3081ecacbb844ea639ccc53ffd2c151cec1e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 28 三月 2021 02:13:53 +0800
Subject: [PATCH] 2021-03-28

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

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/index.jsx
index 3464225..a66ce20 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/index.jsx
@@ -85,12 +85,23 @@
     status.requestMode = status.requestMode || 'system'
     status.procMode = status.procMode || 'script'
     status.callbackType = status.callbackType || 'script'
+    let regoptions = Utils.getRegOptions(search)
+
+    if (config.urlFields && config.urlFields.length > 0) {
+      config.urlFields.forEach(field => {
+        regoptions.push({
+          key: field,
+          value: '0',
+          type: 'url'
+        })
+      })
+    }
 
     this.setState({
       setting: _setting,
       search: _search,
       arr_field: arr_field.join(','),
-      regoptions: Utils.getRegOptions(search), // 鎼滅储鏉′欢锛屾鍒欐浛鎹�
+      regoptions: regoptions, // 鎼滅储鏉′欢锛屾鍒欐浛鎹�
       columns: columns,
       scripts: _scripts,
       preScripts: _preScripts,

--
Gitblit v1.8.0