Commit 86201be3 authored by TZW's avatar TZW

11111

parent 5f63adb9
......@@ -206,9 +206,8 @@ const AvatarDropdown = ({ menu }) => {
<HeaderDropdown overlay={menuHeaderDropdown}>
<span className={`${styles.action} ${styles.account}`}>
<Avatar style={{ backgroundColor: '#1890ff' }}>
{currentUser.username.substr(0, 1)}
{currentUser.fullName.substr(0, 1)}
</Avatar>
<span className={`${styles.name} anticon`} style={{ margin: '0 12px' }}>
{currentUser.fullName}
</span>
......
......@@ -32,7 +32,7 @@ const errorHandler = (error) => {
const errorText = codeMessage[response.status] || response.statusText;
const { status, url } = response;
if (status == '401' || status == '302') {
// window.location.href = 'http://idp.nangaoyun.com:8080/login';
window.location.href = '/';
}
} else if (!response) {
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