Explorar el Código

一键部署按钮分开渲染

xy hace 7 años
padre
commit
a73f0b4253
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. 7 4
      src/app/common/deploy/tencent/TencentConfig.js

+ 7 - 4
src/app/common/deploy/tencent/TencentConfig.js

@@ -196,10 +196,13 @@ class TencentConfig extends Component {
                                             </FormattedMessage>
                                         </Col>
                                         <Col offset={2} span={6}>
-                                            <Button type='primary'
-                                                    disabled={data.project_by_id.schema_id.schemaState === 'ok' ? '' : 'disabled'}
-                                                    onClick={() => this.deployFC()}><FormattedMessage
-                                                id="deploy"/>!</Button>
+                                            {
+                                                data.project_by_id.schema_id.schemaState === 'ok' ?
+                                                    <Button type='primary' onClick={() => this.deployFC()}><FormattedMessage id="deploy"/>!</Button>
+                                                    :
+                                                    <Button type='primary' disabled><FormattedMessage id="deploy"/>!</Button>
+
+                                            }
                                         </Col>
                                     </Row>
                                 </div>