Explorar o código

微信不用检测

xy %!s(int64=7) %!d(string=hai) anos
pai
achega
6239794e74

+ 1 - 1
src/app/common/deploy/Deploy.jsx

@@ -253,7 +253,7 @@ class Deploy extends Component {
 
 
     render() {
     render() {
         const contentListNoTitle = {
         const contentListNoTitle = {
-            tencent: <TencentConfig schemaID={this.state.schemaID} cloudID={this.state.tencentCloudID} fc={this.state.tencentFC} defalutName={this.state.defalutName} userID={this.props.userID} kind={this.state.kind} trialcase={this.props.trialcase}/>,
+            tencent: <TencentConfig configID={this.state.configID} schemaID={this.state.schemaID} cloudID={this.state.tencentCloudID} fc={this.state.tencentFC} defalutName={this.state.defalutName} userID={this.props.userID} kind={this.state.kind} trialcase={this.props.trialcase}/>,
             aliyun: <AliConfig/>,
             aliyun: <AliConfig/>,
             amazon: <AmazonConfig/>,
             amazon: <AmazonConfig/>,
         };
         };

+ 15 - 8
src/app/common/deploy/tencent/TencentConfig.js

@@ -80,14 +80,21 @@ class TencentConfig extends Component {
             })
             })
         }
         }
 
 
-        request(graphqlUrl, SEARCH_SCHEMA, {id: this.props.schemaID}).then(
-            data => {
-                if(data.schema_by_id.schemaState === 'ok')
-                    this.setState({
-                        couldDeploy: true
-                    });
-            }
-        );
+        if(this.props.schemaID === '' || this.props.schemaID === undefined) {
+            this.setState({
+                couldDeploy: true
+            });
+        } else {
+            request(graphqlUrl, SEARCH_SCHEMA, {id: this.props.schemaID}).then(
+                data => {
+                    if(data.schema_by_id.schemaState === 'ok')
+                        this.setState({
+                            couldDeploy: true
+                        });
+                }
+            );
+        }
+
     };
     };
 
 
     pass = (value, kind) => {
     pass = (value, kind) => {