Skip to content

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

:art: export img

Vanessa7237dcd43b00
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.ts
index 1ba23ec784..fe8fe24f4e 100644
--- a/app/src/protyle/export/util.ts
+++ b/app/src/protyle/export/util.ts
@@ -11,6 +11,7 @@ import {isMobile} from "../../util/functions";
import {Constants} from "../../constants";
import {highlightRender} from "../markdown/highlightRender";
import {processRender} from "../util/processCode";
+import {openByMobile} from "../util/compatibility";
declare const html2canvas: (element: Element) => Promise<any>;
export const afterExport = (exportPath: string, msgId: string) => {
@@ -70,7 +71,9 @@ export const exportImage = (id: string) => {
const formData = new FormData();
formData.append("file", blob, response.data.name + ".png");
formData.append("type", "image/png");
- fetchPost("/api/export/exportAsFile", formData);
+ fetchPost("/api/export/exportAsFile", formData, (response) => {
+ openByMobile(response.data.file);
+ });
hideMessage(msgId);
exportDialog.destroy();
});