mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix/fm: reset upload state after completion (#416)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user