添加删除和查询文件操作事件的api
This commit is contained in:
1 parent
4f477c99d1
commit
2f40b4f03b
8 files changed
+159
-42
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user