mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 21:18:07 +01:00
This commit is contained in:
parent
0c7e5e8667
commit
6fc62d12ee
6 changed files with 14 additions and 14 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue