|
|
@@ -3,7 +3,7 @@ import {Link} from 'react-router-dom';
|
|
|
import {deployAll, graphqlUrl, storeFile, copyCos} from "../../../config";
|
|
|
import {ADD_APIGROUP, ADD_APIGWPATH, ADD_DEPLOY, ADD_PROJECT, SHOW_CLOUD} from "../../../gql";
|
|
|
import {CloudConfig} from "../../../login/CloudConfig";
|
|
|
-import {Button, Spin, Input, Radio, Modal, Icon, Steps, Row, Col} from 'antd';
|
|
|
+import {Button, message, Modal, Icon, Steps, Row, Col} from 'antd';
|
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
import {request} from 'graphql-request'
|
|
|
import {idGen} from "../../../func";
|
|
|
@@ -11,7 +11,6 @@ import axios from 'axios';
|
|
|
import './index.css';
|
|
|
|
|
|
const Step = Steps.Step;
|
|
|
-const RadioGroup = Radio.Group;
|
|
|
axios.defaults.withCredentials = true;
|
|
|
|
|
|
class UserCustom extends Component {
|
|
|
@@ -47,7 +46,6 @@ class UserCustom extends Component {
|
|
|
deploy = () => {
|
|
|
this._isMounted = true;
|
|
|
let _this = this;
|
|
|
- console.log('props', this.props);
|
|
|
let {userID, dbKind, bucketName, customName} = this.state;
|
|
|
let {cloudID} = this.cloudState;
|
|
|
|
|
|
@@ -55,7 +53,6 @@ class UserCustom extends Component {
|
|
|
console.log('state, 没有传值');
|
|
|
} else {
|
|
|
|
|
|
- // 开始调用
|
|
|
console.log('开始调用');
|
|
|
this.setState({
|
|
|
disableDeployButton: true
|
|
|
@@ -298,7 +295,7 @@ class CloudQueryAndConfig extends Component {
|
|
|
console.log('数据库有多个同一云服务商的 key');
|
|
|
} else {
|
|
|
if (this._isMounted) {
|
|
|
-
|
|
|
+ console.log('数据库没有云服务商的 key');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -306,9 +303,13 @@ class CloudQueryAndConfig extends Component {
|
|
|
};
|
|
|
|
|
|
showModal = () => {
|
|
|
- this.setState({
|
|
|
- visible: true,
|
|
|
- });
|
|
|
+ if(this.state.userID) {
|
|
|
+ this.setState({
|
|
|
+ visible: true,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ message.warning('请先登录');
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
handleCancel = () => {
|
|
|
@@ -376,7 +377,6 @@ const Step10 = (props) => (
|
|
|
</div>
|
|
|
);
|
|
|
|
|
|
-
|
|
|
class Step11 extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
@@ -408,7 +408,6 @@ class Step11 extends Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
const Step12 = (props) => (
|
|
|
<div className='step-block'>
|
|
|
第三步:注册微信公众号/小程序
|