update @token失效 参数问题修复

This commit is contained in:
huangzhen 2024-11-12 10:43:00 +08:00
parent 8b1d120d54
commit f3de8d928b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ service.interceptors.response.use(
confirmTxt: '重新进入',
})
.then(() => {
location.replace(`${location.origin}${env.BASE_DIRECTORY}home?loginBack=${getQueryParams('loginBack') || location.href}`);
location.replace(`${location.origin}${env.BASE_DIRECTORY}home?loginBack=${getQueryParams('loginBack') || encodeURIComponent(location.href)}`);
})
}
return {};