kulley пре 6 година
родитељ
комит
d088c95cdf
1 измењених фајлова са 8 додато и 4 уклоњено
  1. 8 4
      src/app/basicVersion/caseShow/UserCustom.js

+ 8 - 4
src/app/basicVersion/caseShow/UserCustom.js

@@ -175,12 +175,16 @@ class CloudQueryAndConfig extends Component {
     }
 
     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() {
         let {visible, confirmLoading, cloudName} = this.state;
         return (