Skip to content

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

:art:

Vanessa1df7c23995d7
diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts
index b83b45d7fa..b4e3f02ed1 100644
--- a/app/src/mobile/util/initFramework.ts
+++ b/app/src/mobile/util/initFramework.ts
@@ -28,7 +28,8 @@ export const initFramework = () => {
let backlink: MobileBacklinks;
let bookmark: MobileBookmarks;
let tag: MobileTags;
- sidebarElement.querySelector(".toolbar--border").addEventListener(getEventName(), (event: Event & {
+ // 不能使用 getEventName,否则点击返回会展开右侧栏
+ sidebarElement.querySelector(".toolbar--border").addEventListener("click", (event: Event & {
target: Element
}) => {
const svgElement = hasTopClosestByTag(event.target, "svg");