Przeglądaj źródła

修复一直请求

kulley 6 lat temu
rodzic
commit
d088c95cdf
1 zmienionych plików z 8 dodań i 4 usunięć
  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 (