diff --git a/web/service/base.ts b/web/service/base.ts index 6e54e228e1..9f2b885cb4 100644 --- a/web/service/base.ts +++ b/web/service/base.ts @@ -596,7 +596,8 @@ export const request = async(url: string, options = {}, otherOptions?: IOther Toast.notify({ type: 'error', message }) return Promise.reject(err) } - globalThis.location.href = loginUrl + if (globalThis.location.href !== loginUrl) + globalThis.location.href = loginUrl return Promise.reject(err) } else {