From 72a2138ba1e07580aa4dcb3315d93aef25099374 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 21 Apr 2025 11:37:54 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/14668 --- app/src/protyle/toolbar/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index a26e1e208..b455231ab 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1101,12 +1101,12 @@ export class Toolbar { const exportImg = () => { const msgId = showMessage(window.siyuan.languages.exporting, 0); if (renderElement.getAttribute("data-subtype") === "plantuml") { - fetch(renderElement.querySelector("img").getAttribute("src")).then(function (response) { + fetch(renderElement.querySelector("object").getAttribute("data")).then(function (response) { return response.blob(); }).then(function (blob) { const formData = new FormData(); formData.append("file", blob); - formData.append("type", "image/png"); + formData.append("type", "image/svg+xml"); fetchPost("/api/export/exportAsFile", formData, (response) => { openByMobile(response.data.file); hideMessage(msgId);