Skip to content

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

:art: Improve exporting assets tip

Danield484ddc0793f
diff --git a/app/src/menus/util.ts b/app/src/menus/util.ts
index 993b2331cd..0a22b0fb25 100644
--- a/app/src/menus/util.ts
+++ b/app/src/menus/util.ts
@@ -11,6 +11,7 @@ import {MenuItem} from "./Menu";
import {App} from "../index";
import {exportByMobile, isInAndroid, updateHotkeyTip} from "../protyle/util/compatibility";
import {checkFold} from "../util/noRelyPCFunction";
+import {showMessage} from "../dialog/message";
export const exportAsset = (src: string) => {
return {
@@ -27,7 +28,11 @@ export const exportAsset = (src: string) => {
properties: ["showOverwriteConfirmation"],
});
if (!result.canceled) {
- fetchPost("/api/file/copyFile", {src, dest: result.filePath});
+ fetchPost("/api/file/copyFile", {src, dest: result.filePath}, (response) => {
+ if (response.code === 0) {
+ showMessage(window.siyuan.languages.exported);
+ }
+ });
}
/// #endif
}