添加删除和查询文件操作事件的api

This commit is contained in:
539943419 committed 2024-08-11 22:39:54 +08:00
1 parent 4f477c99d1
commit 2f40b4f03b
8 files changed
+159 -42

No files matched your search

+3 -3
View File
@@ -41,15 +41,15 @@ export class UploadQueueItem {
if (this.status === "uploading") {
return;
}
const { abort, status } = miaoFetchApi.upload(this.file, this.targetDirectory, {
const { abort, response } = miaoFetchApi.upload(this.file, this.targetDirectory, {
onProcess: percent => {
this.process = percent;
}
});
this._abort = abort;
this._status = status;
this._status = response;
this.status = "uploading";
status
response
.then(() => {
this.status = "success";
this.onSuccess && this.onSuccess();