|
@@ -175,12 +175,16 @@ class CloudQueryAndConfig extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
componentWillReceiveProps(next) {
|
|
componentWillReceiveProps(next) {
|
|
|
- this.setState({
|
|
|
|
|
- cloudName: next.cloudName,
|
|
|
|
|
- userID: next.userID,
|
|
|
|
|
- }, this.searchCloud);
|
|
|
|
|
|
|
+ console.log(111)
|
|
|
|
|
+ if(this.props.check !== next.check) {
|
|
|
|
|
+ this.setState({
|
|
|
|
|
+ cloudName: next.cloudName,
|
|
|
|
|
+ userID: next.userID,
|
|
|
|
|
+ }, this.searchCloud);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
render() {
|
|
render() {
|
|
|
let {visible, confirmLoading, cloudName} = this.state;
|
|
let {visible, confirmLoading, cloudName} = this.state;
|
|
|
return (
|
|
return (
|