This commit is contained in:
Vanessa 2022-06-07 21:05:06 +08:00
parent 0c7e5e8667
commit 6fc62d12ee
6 changed files with 14 additions and 14 deletions

View file

@ -130,12 +130,12 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
};
export const uploadLocalFiles = (files: string[], protyle: IProtyle) => {
const id = showMessage(window.siyuan.languages.uploading, 0);
const msgId = showMessage(window.siyuan.languages.uploading, 0);
fetchPost("/api/asset/insertLocalAssets", {
assetPaths: files,
id: protyle.block.rootID
}, (response) => {
hideMessage(id);
hideMessage(msgId);
genUploadedLabel(JSON.stringify(response), protyle);
});
};