diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js index c40f14bdc..fdf710a21 100644 --- a/public/react/src/modules/login/Trialapplication.js +++ b/public/react/src/modules/login/Trialapplication.js @@ -270,7 +270,7 @@ class Trialapplication extends Component { }).then((result) => { // console.log(result); // this.onTabChange("1"); - if(result !== undefined){ + this.props.showNotification(`试用申请已提交,我们将尽快完成审核`); if (this.state.showTrial === false) { window.location.href = "/"; @@ -284,7 +284,7 @@ class Trialapplication extends Component { }) this.handleDialogClose() } - } + this.handleDialogClose() }).catch((error) => { }) diff --git a/public/react/src/modules/login/Trialapplicationysl.js b/public/react/src/modules/login/Trialapplicationysl.js index b65725cef..f9dc28b69 100644 --- a/public/react/src/modules/login/Trialapplicationysl.js +++ b/public/react/src/modules/login/Trialapplicationysl.js @@ -286,7 +286,7 @@ class Trialapplicationysl extends Component { }).then((result) => { // console.log(result); // this.onTabChange("1"); - if(result !== undefined){ + this.props.showNotification(`试用申请已提交,我们将尽快完成审核`); // if (this.state.showTrial === false) { window.location.href = "/"; @@ -302,7 +302,7 @@ class Trialapplicationysl extends Component { // this.Cancel(); // // } - } + }).catch((error) => { })