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/pull/17647

Daniel51013c7b85af
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 37c640bcb2..08aed2a7a9 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -99,7 +99,7 @@ export const openByMobile = (uri: string) => {
}
};
-export const saveExportFile = async (uri: string) => {
+export const saveExportFile = async (uri: string, msgId?: string) => {
if (!uri) {
return;
}
@@ -135,10 +135,10 @@ export const saveExportFile = async (uri: string) => {
if (copyResponse.code !== 0) {
throw new Error(copyResponse.msg);
}
- showMessage(window.siyuan.languages.exported);
+ showMessage(window.siyuan.languages.exported, 6000, "info", msgId);
return;
} catch (e) {
- showMessage("saveExportFile failed: " + e);
+ showMessage("saveExportFile failed: " + e, 6000, "error", msgId);
}
/// #else
try {