Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15308

Vanessa3b3c5df1d5bf
diff --git a/app/src/util/processMessage.ts b/app/src/util/processMessage.ts
index 3c0d4ae57c..649d3793c2 100644
--- a/app/src/util/processMessage.ts
+++ b/app/src/util/processMessage.ts
@@ -33,22 +33,15 @@ export const processMessage = (response: IWebSocketData) => {
return false;
}
if ("reloadui" === response.cmd) {
- const reloadByMode = (mode: string) => {
- if (mode) {
- window.location.pathname = `stage/build/${mode}/`;
- } else {
- window.location.reload();
- }
- };
if (response.data?.resetScroll) {
window.siyuan.storage[Constants.LOCAL_FILEPOSITION] = {};
setStorageVal(Constants.LOCAL_FILEPOSITION, window.siyuan.storage[Constants.LOCAL_FILEPOSITION], () => {
/// #if MOBILE
- reloadByMode(response.data?.mode);
+ window.location.reload();
/// #else
exportLayout({
cb() {
- reloadByMode(response.data?.mode);
+ window.location.reload();
},
errorExit: false,
});
@@ -56,11 +49,11 @@ export const processMessage = (response: IWebSocketData) => {
});
} else {
/// #if MOBILE
- reloadByMode(response.data?.mode);
+ window.location.reload();
/// #else
exportLayout({
cb() {
- reloadByMode(response.data?.mode);
+ window.location.reload();
},
errorExit: false,
});