Commit 86201be3 authored by TZW's avatar TZW

11111

parent 5f63adb9
...@@ -206,9 +206,8 @@ const AvatarDropdown = ({ menu }) => { ...@@ -206,9 +206,8 @@ const AvatarDropdown = ({ menu }) => {
<HeaderDropdown overlay={menuHeaderDropdown}> <HeaderDropdown overlay={menuHeaderDropdown}>
<span className={`${styles.action} ${styles.account}`}> <span className={`${styles.action} ${styles.account}`}>
<Avatar style={{ backgroundColor: '#1890ff' }}> <Avatar style={{ backgroundColor: '#1890ff' }}>
{currentUser.username.substr(0, 1)} {currentUser.fullName.substr(0, 1)}
</Avatar> </Avatar>
<span className={`${styles.name} anticon`} style={{ margin: '0 12px' }}> <span className={`${styles.name} anticon`} style={{ margin: '0 12px' }}>
{currentUser.fullName} {currentUser.fullName}
</span> </span>
......
...@@ -32,7 +32,7 @@ const errorHandler = (error) => { ...@@ -32,7 +32,7 @@ const errorHandler = (error) => {
const errorText = codeMessage[response.status] || response.statusText; const errorText = codeMessage[response.status] || response.statusText;
const { status, url } = response; const { status, url } = response;
if (status == '401' || status == '302') { if (status == '401' || status == '302') {
// window.location.href = 'http://idp.nangaoyun.com:8080/login'; window.location.href = '/';
} }
} else if (!response) { } else if (!response) {
notification.error({ notification.error({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment