Pārlūkot izejas kodu

链接默认 cloud 到未设置 cloud 的用户

xy 7 gadi atpakaļ
vecāks
revīzija
29c16bccdc

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

@@ -34,8 +34,8 @@ class Deploy extends Component {
         this.state = {
             show: false,
             cloud: 'tencent',
-            tencentCloudID: '',
-            aliyunCloudID: '',
+            tencentCloudID: 'tencent_CloudID',
+            aliyunCloudID: 'aliyun_CloudID',
             amazonCloudID: '',
             defalutName: '',
             tencentFC: '',

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

@@ -153,6 +153,14 @@ class TencentConfig extends Component {
                         </Col>
                         <Col offset={2} span={6}>
                             <Button type='primary' disabled={this.state.couldDeploy? '': 'disabled'} onClick={()=>this.deployFC()}><FormattedMessage id="deploy"/>!</Button>
+                            {
+                                this.state.couldDeploy?
+                                    ''
+                                    :
+                                    <div>
+                                        <span>if button is disabled, check your schema</span>
+                                    </div>
+                            }
                         </Col>
                     </Row>
                 </div>