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

fix: 登录页面调接口失败

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