mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
834a736293
commit
72a2138ba1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue