| | |
| | | import logo from '../../img/logo.png'; |
| | | import fetch from '../../api/request'; |
| | | import { oaMenus, userMenus, getMenuListByPermission } from '../../menu'; |
| | | import { Context } from '../../index'; |
| | | import { createHashHistory } from 'history'; |
| | | const history = createHashHistory(); |
| | | |
| | | class NormalLoginForm extends React.Component { |
| | | constructor(props) { |
| | |
| | | }; |
| | | } |
| | | componentWillMount() { |
| | | document.title = '恒巨信息OA-用户登录' |
| | | document.title = '恒巨信息OA-用户登录'; |
| | | } |
| | | |
| | | handleSubmit = e => { |
| | |
| | | } |
| | | }));//所有模块菜单 |
| | | message.success('登录成功'); |
| | | setTimeout(() => { |
| | | this.props.history.push({ pathname: "/index" }); |
| | | }, 1500);//延时跳转 |
| | | console.log('this props', this.props); |
| | | history.push({ pathname: "/index" }); |
| | | |
| | | this.props.setContext && this.props.setContext({ role: 'oa' }) |
| | | } |
| | | }) |
| | | } |
| | |
| | | </div> |
| | | <div className="login-div-bottom">2011 10215489广州恒巨信息科技有限公司 版权所有 - 粤ICP备10215489号</div> |
| | | </div> |
| | | |
| | | </div> |
| | | ); |
| | | } |