mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 00:57:04 +08:00
fix: infinite reload (#27150)
This commit is contained in:
parent
6217c96576
commit
c11cdf7468
@ -596,7 +596,8 @@ export const request = async<T>(url: string, options = {}, otherOptions?: IOther
|
|||||||
Toast.notify({ type: 'error', message })
|
Toast.notify({ type: 'error', message })
|
||||||
return Promise.reject(err)
|
return Promise.reject(err)
|
||||||
}
|
}
|
||||||
globalThis.location.href = loginUrl
|
if (globalThis.location.href !== loginUrl)
|
||||||
|
globalThis.location.href = loginUrl
|
||||||
return Promise.reject(err)
|
return Promise.reject(err)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user