| | |
| | | sessionStorage.clear() |
| | | _this.props.logout() |
| | | _this.props.history.replace('/login') |
| | | // return Api.logoutsystem().then(res => { |
| | | // if (res.status) { |
| | | // sessionStorage.removeItem('UserID') |
| | | // _this.props.resetState() |
| | | // _this.props.history.replace('/login') |
| | | // } else { |
| | | // message.warning(res.message) |
| | | // } |
| | | // }) |
| | | }, |
| | | onCancel() {} |
| | | }) |
| | |
| | | {this.state.dict['header.edit']} |
| | | <Switch size="small" className="edit-switch" disabled={!!this.props.editLevel} onChange={this.changeEditState} /> |
| | | </Menu.Item>} |
| | | <Menu.Item key="1" onClick={this.changePassword}>{this.state.dict['header.password']}</Menu.Item> |
| | | {/* <Menu.Item key="1" onClick={this.changePassword}>{this.state.dict['header.password']}</Menu.Item> */} |
| | | <Menu.Item key="2" onClick={this.logout}>{this.state.dict['header.logout']}</Menu.Item> |
| | | </Menu> |
| | | ) |