mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
fix/fm: reset upload state after completion (#416)
This commit is contained in:
parent
71508f8724
commit
989c9f9740
@ -221,7 +221,7 @@
|
|||||||
|
|
||||||
const checkCompletion = setInterval(() => {
|
const checkCompletion = setInterval(() => {
|
||||||
if (isUpCompleted) {
|
if (isUpCompleted) {
|
||||||
clearInterval(checkCompletion); // 任务完成后停止检查
|
clearInterval(checkCompletion);
|
||||||
hideUpdModal();
|
hideUpdModal();
|
||||||
resetUpdState();
|
resetUpdState();
|
||||||
listFile();
|
listFile();
|
||||||
@ -480,6 +480,7 @@
|
|||||||
const file = event.target.files[0];
|
const file = event.target.files[0];
|
||||||
if (file) {
|
if (file) {
|
||||||
await uploadFile(file);
|
await uploadFile(file);
|
||||||
|
isUpCompleted = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user