We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ff6e7 commit 9c2471aCopy full SHA for 9c2471a
frontend/src/shared/http/http.ts
@@ -43,7 +43,7 @@ baseAxios.interceptors.response.use(
43
if (error.response.status === 401) {
44
store.dispatch(setLoginStatus(false));
45
if (error.response.headers["fit-redirect-to-prefix"]) {
46
- window.location.href = error.response.headers["fit-redirect-to-prefix"] + window.location.href;
+ window.location.href = error.response.headers["fit-redirect-to-prefix"] + encodeURIComponent(window.location.href);
47
} else {
48
Message({ type: 'error', content: '登录失效且headers里面没有跳转登录的url' });
49
}
0 commit comments