From f7e9b835c30e5b3287b2c04e24950871cafa907d Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Mon, 07 Sep 2020 15:28:45 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/huge/frontEnd/hugeOA
---
src/components/common/HeadView/index.jsx | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/common/HeadView/index.jsx b/src/components/common/HeadView/index.jsx
index 9927dd1..d629bbf 100644
--- a/src/components/common/HeadView/index.jsx
+++ b/src/components/common/HeadView/index.jsx
@@ -24,6 +24,7 @@
// 清空用户相关信息
window.localStorage.setItem('menu', '');
window.localStorage.setItem('token', '');
+ window.localStorage.setItem('role', '');
message.success('退出成功!');
fun({ role: '' });
window.location.href = window.location.origin + '/#/login';
@@ -69,7 +70,7 @@
(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('/')
}}>
@@ -78,7 +79,7 @@
<Option value={key} key={key}>{name}</Option>
))
}
- </Select>
+ </Select> */}
</Col>
<Col style={{ marginRight: 40 }}>
{loginUser.trueName}
--
Gitblit v1.8.0