diff --git a/src/utils/request/index.ts b/src/utils/request/index.ts index 31500a3..b039d22 100644 --- a/src/utils/request/index.ts +++ b/src/utils/request/index.ts @@ -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 {};