فهرست منبع

部署后跳转和云配置保存后消失

kulley 6 سال پیش
والد
کامیت
1bde000a3b
2فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 3 0
      src/app/basicVersion/caseShow/UserCustom.js
  2. 3 0
      src/login/CloudConfig.js

+ 3 - 0
src/app/basicVersion/caseShow/UserCustom.js

@@ -52,6 +52,7 @@ class UserCustom extends Component {
 
     render() {
         let {userID, cloudID, bucketName, deployFailed, appId, secretID, secretKey} = this.state;
+        let {history} = this.props
         return (
             <Content className="content">
                 <div>
@@ -79,6 +80,7 @@ class UserCustom extends Component {
                                       secretKey={secretKey}
                                       appId={appId}
                                       cloudID={cloudID}
+                                      history={history}
                                 />
                                 />
                                 <Step title=<Step4/> />
@@ -613,6 +615,7 @@ const Step3 = (props) => (
                 secretKey={props.secretKey}
                 appId={props.appId}
                 cloudID={props.cloudID}
+                history={props.history}
             />
         </div>
     </div>

+ 3 - 0
src/login/CloudConfig.js

@@ -56,6 +56,7 @@ class CloudConfig extends Component {
     };
 
     submit = (id, cloudName, secretId, secretKey, appId) => {
+        let {handleCancel} = this.props
         return () => {
             if (id === '') {
                 let varObj = {
@@ -80,6 +81,7 @@ class CloudConfig extends Component {
                                 this.setState({
                                     showOK: ''
                                 });
+                                handleCancel();
                             }, 1500)
                         } else {
                             this.setState({
@@ -111,6 +113,7 @@ class CloudConfig extends Component {
                                 this.setState({
                                     showOK: ''
                                 });
+                                handleCancel();
                             }, 1500)
                         } else {
                             this.setState({