xy 7 年 前
コミット
2aca71a44e
1 ファイル変更16 行追加16 行削除
  1. 16 16
      src/app/common/deploy/tencent/TencentConfig.js

+ 16 - 16
src/app/common/deploy/tencent/TencentConfig.js

@@ -318,8 +318,8 @@ class TencentConfig extends Component {
                         <Col span={14}>
 
                             {
-                                this.state.currentStep !== '' ?
-                                    <Steps current={this.state.currentStep} style={{marginBottom: 30}}>
+                                this.state.currentStep !== '' || this.state.deploying === 'deploying' || this.state.deploying === 'deployed'?
+                                    <Steps current={this.state.deploying !== 'deploying' ? this.state.currentStep : 4} style={{marginBottom: 30}}>
                                         <Step title={this.stepStatus(0)} description="云函数配置"/>
                                         <Step title={this.stepStatus(1)} description="服务配置"/>
                                         <Step title={this.stepStatus(2)} description="API 配置"/>
@@ -417,7 +417,6 @@ class TencentConfig extends Component {
                                         this.props.trialcase ?
                                             ''
                                             :
-
                                             this.state.projectType === 'graphql' ?
 
                                                 this.state.schemaState === 'ok' ?
@@ -435,24 +434,25 @@ class TencentConfig extends Component {
                                                 }}><FormattedMessage id="deploy"/>!</Button>
 
                                     }
-                                    {
-                                        this.state.deploying === 'deploying' ?
-                                            <Spin size="large"/>
-                                            :
-                                            this.state.deploying === 'finished' ?
-                                                <Progress type="circle" percent={100}/>
-                                                :
-                                                this.state.deploying === 'error' ?
-                                                    <Progress type="circle" percent={99}
-                                                              status="exception"/>
-                                                    :
-                                                    ''
-                                    }
                                 </Col>
                                 :
                                 ''
                         }
 
+                        {
+                            this.state.deploying === 'deploying' ?
+                                <Spin size="large"/>
+                                :
+                                this.state.deploying === 'finished' ?
+                                    <Progress type="circle" percent={100}/>
+                                    :
+                                    this.state.deploying === 'error' ?
+                                        <Progress type="circle" percent={99}
+                                                  status="exception"/>
+                                        :
+                                        ''
+                        }
+
                     </Row>
                 </div>
             </div>