mirror of
https://github.com/langgenius/dify.git
synced 2026-02-09 23:20:12 -05:00
fix: infinite reload (#27150)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user