An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/6493
Vanessaf524918a7e44
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.tsindex 81f3904768..c8b752cf07 100644--- a/app/src/menus/navigation.ts+++ b/app/src/menus/navigation.ts@@ -21,11 +21,11 @@ import {openFileById} from "../editor/util";/// #endifimport {Constants} from "../constants";import {newFile} from "../util/newFile";-import {hasClosestByClassName} from "../protyle/util/hasClosest";+import {hasClosestByTag} from "../protyle/util/hasClosest";import {deleteFiles} from "../editor/deleteFile";export const initNavigationMenu = (liElement: HTMLElement) => {- const fileElement = hasClosestByClassName(liElement, "sy__file");+ const fileElement = hasClosestByTag(liElement, "DIV");if (!fileElement) {return;}@@ -142,7 +142,7 @@ export const initNavigationMenu = (liElement: HTMLElement) => {};export const initFileMenu = (notebookId: string, pathString: string, liElement: Element) => {- const fileElement = hasClosestByClassName(liElement, "sy__file");+ const fileElement = hasClosestByTag(liElement, "DIV");if (!fileElement) {return;}