|
@@ -16,12 +16,12 @@ const {Content} = Layout;
|
|
|
const RadioGroup = Radio.Group;
|
|
const RadioGroup = Radio.Group;
|
|
|
axios.defaults.withCredentials = true;
|
|
axios.defaults.withCredentials = true;
|
|
|
|
|
|
|
|
-class DeployCloudChoose extends Component {
|
|
|
|
|
|
|
+class ExampleDetail extends Component {
|
|
|
constructor() {
|
|
constructor() {
|
|
|
super();
|
|
super();
|
|
|
this.state = {
|
|
this.state = {
|
|
|
userID: '',
|
|
userID: '',
|
|
|
- check: new Date().getTime(),
|
|
|
|
|
|
|
+ check: 0,
|
|
|
|
|
|
|
|
disableDeployButton: false,
|
|
disableDeployButton: false,
|
|
|
domain: '',
|
|
domain: '',
|
|
@@ -347,7 +347,7 @@ class DeployCloudChoose extends Component {
|
|
|
<CloudQueryAndConfig cloudName={cloudName} userID={userID}
|
|
<CloudQueryAndConfig cloudName={cloudName} userID={userID}
|
|
|
getCloudDetail={this.getCloudDetail} check={check}
|
|
getCloudDetail={this.getCloudDetail} check={check}
|
|
|
reCheck={() => {
|
|
reCheck={() => {
|
|
|
- this.setState({check: new Date().getTime()})
|
|
|
|
|
|
|
+ this.setState({check: check+1})
|
|
|
}}/>
|
|
}}/>
|
|
|
</div>
|
|
</div>
|
|
|
<div style={{marginTop: 20}}>
|
|
<div style={{marginTop: 20}}>
|
|
@@ -442,7 +442,7 @@ class DeployCloudChoose extends Component {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export default DeployCloudChoose
|
|
|
|
|
|
|
+export default ExampleDetail
|
|
|
|
|
|
|
|
class CloudQueryAndConfig extends Component {
|
|
class CloudQueryAndConfig extends Component {
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
@@ -496,6 +496,7 @@ class CloudQueryAndConfig extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
componentWillReceiveProps(next) {
|
|
componentWillReceiveProps(next) {
|
|
|
|
|
+ console.log(next);
|
|
|
this.setState({
|
|
this.setState({
|
|
|
cloudName: next.cloudName,
|
|
cloudName: next.cloudName,
|
|
|
userID: next.userID,
|
|
userID: next.userID,
|