fix/fm: reset upload state after completion (#416)

This commit is contained in:
UUBulb 2024-08-28 23:23:23 +08:00 committed by GitHub
parent 71508f8724
commit 989c9f9740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,7 @@
const checkCompletion = setInterval(() => {
if (isUpCompleted) {
clearInterval(checkCompletion); // 任务完成后停止检查
clearInterval(checkCompletion);
hideUpdModal();
resetUpdState();
listFile();
@ -480,6 +480,7 @@
const file = event.target.files[0];
if (file) {
await uploadFile(file);
isUpCompleted = false;
}
});