Skip to content

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

:art: Clean code

Liang Ding6b484527a7ec
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index df78d03b06..9441640cf3 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -298,7 +298,8 @@ export const JSONToLayout = (isStart: boolean) => {
}
});
}
- // https://github.com/siyuan-note/siyuan/pull/7086
+
+ // 支持通过 URL 查询字符串参数 `id` 和 `focus` 跳转到 Web 端指定块 https://github.com/siyuan-note/siyuan/pull/7086
const openId = getSearch("id");
if (openId) {
// 启动时 layout 中有该文档,该文档还原会在此之后,因此需有延迟