Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: dropCurrentLayout

Vanessa68af8463db0b
diff --git a/app/src/util/processMessage.ts b/app/src/util/processMessage.ts
index 6faa9ff5af..e3bbae07bd 100644
--- a/app/src/util/processMessage.ts
+++ b/app/src/util/processMessage.ts
@@ -23,7 +23,11 @@ export const processMessage = (response: IWebSocketData) => {
/// #if MOBILE
window.location.reload();
/// #else
- exportLayout(true);
+ if (response.data.dropCurrentLayout) {
+ window.location.reload();
+ } else {
+ exportLayout(true);
+ }
/// #endif
return false;
}