diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js index 8feabd068..a85bf124e 100644 --- a/public/react/src/modules/user/FindPasswordComponent.js +++ b/public/react/src/modules/user/FindPasswordComponent.js @@ -3,9 +3,13 @@ import React, {Component} from 'react'; import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom"; import {getImageUrl, DragValidator} from 'educoder'; -import DragValidatortwo from '../../../src/common/components/DragValidatortwo' import {Tabs, Input, Checkbox, Button, notification} from 'antd'; + +import DragValidatortwo from '../../../src/common/components/DragValidatortwo' + +import ReadPassword from './ReadPassword'; + import axios from 'axios'; import './common.css' @@ -150,6 +154,9 @@ class LoginRegisterComponent extends Component { } //找回密码 Retrievepassword = () => { + this.setState({ + modalsType:true + }) if (this.state.Phonenumberisnotcobool === false) { if (this.state.login.length === 0) { this.setState({ @@ -202,8 +209,11 @@ class LoginRegisterComponent extends Component { }).then((result) => { // console.log(result); //登录成功,会生成session - this.openNotification("找回密码成功,请重新登入。"); - window.location.href = "/login" + // this.openNotification("找回密码成功,请重新登入。"); + // window.location.href = "/login" + this.setState({ + modalsType:true + }) }).catch((error) => { }) @@ -404,6 +414,11 @@ class LoginRegisterComponent extends Component { return (
欢迎使用EduCoder,您可以试用1天
超过期限,需要经过管理员的授权审核
欢迎使用EduCoder,您可以试用1天
超过期限,需要经过管理员的授权审核
您尚未完善个人资料
请在完成资料后,提交试用申请
您尚未完善个人资料
请在完成资料后,提交试用申请