Skip to content

Commit

Permalink
fix(ui): re-login problem in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshiwen committed Dec 14, 2020
1 parent 95d320d commit 1e5da63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dolphinscheduler-ui/src/js/module/io/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e5da63

Please sign in to comment.