Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/9405

Vanessac5206f70843c
diff --git a/app/electron/main.js b/app/electron/main.js
index 8c16bae748..2bca368a0d 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -695,9 +695,10 @@ app.whenReady().then(() => {
return;
}
const ids = decodeURIComponent(new URL(item.webContents.getURL()).hash.substring(1)).split("\u200b");
- if (ids.includes(data.options.rootID) || ids.includes(data.options.assetPath)) {
+ const options = JSON.parse(data.options);
+ if (ids.includes(options.rootID) || ids.includes(options.assetPath)) {
item.focus();
- item.webContents.send("siyuan-open-file", data.options);
+ item.webContents.send("siyuan-open-file", options);
hasMatch = true;
return true;
}