Browse Source

:art: https://github.com/siyuan-note/siyuan/issues/10666

Vanessa 1 year ago
parent
commit
b9b1436572
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/src/asset/anno.ts

+ 1 - 0
app/src/asset/anno.ts

@@ -719,6 +719,7 @@ const copyAnno = (idPath: string, fileName: string, pdf: any) => {
                     const formData = new FormData();
                     const imageName = content + ".png";
                     formData.append("file[]", blob, imageName);
+                    formData.append("skipIfDuplicated", "true");
                     fetchPost(Constants.UPLOAD_ADDRESS, formData, (response) => {
                         writeText(`<<${idPath} "${content}">>
 ![](${response.data.succMap[imageName]})`);