Skip to content

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

:memo:

Vanessa04c6dc940a86
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index e579864efa..7b0141a531 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -24,6 +24,7 @@ import {getCurrentWindow, systemPreferences} from "@electron/remote";
import {onGet} from "../util/onGet";
import {saveScroll} from "../scroll/saveScroll";
import {hideElements} from "../ui/hideElements";
+import {confirmDialog} from "../../dialog/confirmDialog";
export class Breadcrumb {
public element: HTMLElement;
@@ -252,7 +253,9 @@ export class Breadcrumb {
label: window.siyuan.languages.share2Liandi,
icon: "iconLiandi",
click() {
- fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
+ confirmDialog(window.siyuan.languages.share2Liandi, "", () => {
+ fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
+ })
}
}).element);
}