fix: infinite reload (#27150)

This commit is contained in:
Joel authored and GitHub committed 2025-10-20 21:18:26 +09:00
1 parent 6217c96576
commit c11cdf7468
1 file changed
+2 -1
+2 -1
View File
@@ -596,7 +596,8 @@ export const request = async<T>(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 {