Skip to content

Commit

Permalink
Merge pull request #2990 from hLinx/hotfix_3.8.x
Browse files Browse the repository at this point in the history
feat: 注销登录统一方案 #2988
  • Loading branch information
hLinx authored May 17, 2024
2 parents c3c4751 + a1d2eeb commit 40de78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/utils/request/middleware/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export default (interceptors) => {
case 401:
if (hasLogined) {
showLoginModal({
loginUrl: `${error.message}&c_url=${decodeURIComponent(`${window.location.origin}/static/login_success.html`)}`
loginUrl: `${error.message}is_from_logout=1&c_url=${decodeURIComponent(`${window.location.origin}/static/login_success.html`)}`
})
} else {
window.location.href = `${error.message}&c_url=${decodeURIComponent(window.location.href)}`;
window.location.href = `${error.message}is_from_logout=1&c_url=${decodeURIComponent(window.location.href)}`;
}
break;
// 没权限
Expand Down

0 comments on commit 40de78e

Please sign in to comment.