| | |
| | | // 清空用户相关信息 |
| | | window.localStorage.setItem('menu', ''); |
| | | window.localStorage.setItem('token', ''); |
| | | window.localStorage.setItem('role', ''); |
| | | message.success('退出成功!'); |
| | | fun({ role: '' }); |
| | | window.location.href = window.location.origin + '/#/login'; |
| | |
| | | (loginUser && Object.keys(loginUser).length) && |
| | | <Row type="flex" align="middle" justify="space-between" > |
| | | <Col> |
| | | <Select value={role} size="small" style={{ marginLeft: 20, width: 120 }} onChange={value => { |
| | | {/* <Select value={role} size="small" style={{ marginLeft: 20, width: 120 }} onChange={value => { |
| | | setContext({ role: value }); |
| | | history.push('/') |
| | | }}> |
| | |
| | | <Option value={key} key={key}>{name}</Option> |
| | | )) |
| | | } |
| | | </Select> |
| | | </Select> */} |
| | | </Col> |
| | | <Col style={{ marginRight: 40 }}> |
| | | {loginUser.trueName} |