Commit 65bd0f3f authored by 张烨's avatar 张烨

fix: 登录页面调接口失败

parent f6d0675b
...@@ -22,16 +22,18 @@ const bizRedirectHandler = response => { ...@@ -22,16 +22,18 @@ const bizRedirectHandler = response => {
确定 确定
</Button> </Button>
); );
notification.warning({ if (!/\/user\/login$/.test(window.location.pathname)) {
key, notification.warning({
title: '提示', key,
message: '授权失败,即将跳转到登录页', title: '提示',
duration: 4, message: '授权失败,即将跳转到登录页',
btn, duration: 4,
}); btn,
setTimeout(() => { });
window.location.href = `/${BASENAME}/user/login`; setTimeout(() => {
}, 4000); window.location.href = `/${BASENAME}/user/login`;
}, 4000);
}
} }
}; };
......
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