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/7976

Vanessa467c85bc85db
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index e78df9fb63..42e901ffbb 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -918,6 +918,12 @@ export class Dock {
if (typeof tabIndex === "undefined" && !TYPES.includes(item.type)) {
return;
}
+ // https://github.com/siyuan-note/siyuan/issues/7976 历史兼容 3.6.5->3.6.6
+ if (item.type === "outline") {
+ item.icon = "iconOutline";
+ } else if (item.type === "bookmark") {
+ item.icon = "iconBookmarks";
+ }
html += `<span data-height="${item.size.height}" data-width="${item.size.width}" data-type="${item.type}" data-index="${index}" data-hotkey="${item.hotkey || ""}" data-hotkeylangid="${item.hotkeyLangId || ""}" data-title="${item.title}" class="dock__item${item.show ? " dock__item--active" : ""} ariaLabel" aria-label="<span style='white-space:pre'>${item.title} ${item.hotkey ? updateHotkeyTip(item.hotkey) : ""}${window.siyuan.languages.dockTip}</span>">
<svg><use xlink:href="#${item.icon}"></use></svg>
</span>`;