From bf772e586c29b4858366dbad143b1eaeca3c46ed Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 17 四月 2020 10:18:09 +0800
Subject: [PATCH] 2020-04-17

---
 src/templates/formtabconfig/settingform/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/templates/formtabconfig/settingform/index.jsx b/src/templates/formtabconfig/settingform/index.jsx
index 7dafe72..4dab6bc 100644
--- a/src/templates/formtabconfig/settingform/index.jsx
+++ b/src/templates/formtabconfig/settingform/index.jsx
@@ -75,7 +75,7 @@
   onSysChange = (e) => {
     if (e.target.value === 'true') {
       this.props.form.setFieldsValue({
-        interface: window.GLOB.mainSystemApi || window.GLOB.subSystemApi
+        interface: window.GLOB.mainSystemApi || ''
       })
       this.setState({
         interReadonly: true
@@ -96,7 +96,7 @@
       let _type = this.props.form.getFieldValue('sysInterface')
       if (_type === 'true') {
         this.props.form.setFieldsValue({
-          interface: window.GLOB.mainSystemApi || window.GLOB.subSystemApi
+          interface: window.GLOB.mainSystemApi || ''
         })
         this.setState({
           interReadonly: true
@@ -120,7 +120,7 @@
       let _type = this.props.form.getFieldValue('sysInterface')
       if (_type === 'true') {
         this.props.form.setFieldsValue({
-          interface: window.GLOB.mainSystemApi || window.GLOB.subSystemApi
+          interface: window.GLOB.mainSystemApi || ''
         })
         this.setState({
           interReadonly: true
@@ -239,7 +239,7 @@
           {datatype === 'query' && interType === 'outer' ? <Col span={12}>
             <Form.Item label={dict['header.form.interface']}>
               {getFieldDecorator('interface', {
-                initialValue: setting.sysInterface === 'true' ? (window.GLOB.mainSystemApi || window.GLOB.subSystemApi) : (setting.interface || ''),
+                initialValue: setting.sysInterface === 'true' ? (window.GLOB.mainSystemApi || '') : (setting.interface || ''),
                 rules: [
                   {
                     required: true,

--
Gitblit v1.8.0