kulley 7 лет назад
Родитель
Сommit
922078b5ce

+ 2 - 1
src/app/basicVersion/exampleShow/DeployCloudChoose.js

@@ -85,6 +85,7 @@ class DeployCloudChoose extends Component {
     }
 
     deploy() {
+        this._isMounted = true;
         let _this = this;
         let {userID, dbKind, bucketName} = this.state;
 
@@ -218,7 +219,7 @@ class DeployCloudChoose extends Component {
                                 console.log(value);
 
                                 // 展示数据
-                                if(this._isMounted) {
+                                if(_this._isMounted) {
                                     _this.setState({
                                         disabled: false
                                     });

+ 1 - 1
src/app/basicVersion/myDeploy/TencentDeploy.js

@@ -26,7 +26,7 @@ class TencentDeploy extends Component {
         this._isMounted = true;
         let {userID} = this.state;
         if (userID !== 'demo') {
-            request(graphqlUrl, SHOW_APIGROUP, {userID}).then(res => {
+            request(graphqlUrl, SHOW_APIGROUP, {user_id: userID}).then(res => {
                 let allDeployed = res.apiGWGroupbyprops;
                 let deployed = allDeployed.filter(deployed =>
                     deployed.cloud_id.cloudName === 'tencent'