Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: infinite reload (#27150)

Joelc11cdf7468fb
diff --git a/web/service/base.ts b/web/service/base.ts
index 6e54e228e16..9f2b885cb46 100644
--- a/web/service/base.ts
+++ b/web/service/base.ts
@@ -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 {