未验证 提交 a0e35c78 编写于 作者: X xingchun-chen 提交者: GitHub

Merge pull request #4612 from chengshiwen/1.3.5-#4162

[1.3.5-prepare][cherry-pick]#4162 fix re-login problem in new tab
......@@ -75,7 +75,7 @@ io.interceptors.request.use(
const sIdCookie = cookies.get('sessionId')
const sessionId = sessionStorage.getItem('sessionId')
const requstUrl = config.url.substring(config.url.lastIndexOf('/') + 1)
if (sIdCookie !== null && requstUrl !== 'login' && sIdCookie !== sessionId) {
if ((!sIdCookie || (sessionId && sessionId !== sIdCookie)) && requstUrl !== 'login') {
window.location.href = `${PUBLIC_PATH}/view/login/index.html`
} else {
const { method } = config
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册