本地ota加入写flash逻辑以后 会卡死。目前不知道如何优化

This commit is contained in:
Your Name
2025-04-18 10:12:57 +08:00
parent 393af288ec
commit 4e1b376b6a
4 changed files with 33 additions and 38 deletions

View File

@@ -1518,6 +1518,7 @@ HttpPost("/shortClickEvent", function (re) {
return;
}
clearTimeout(powerTimerId);
console.log(fileInput.files[0].size); // 应显示 647168 左右
fetch("/ota/fileUpload", {
method: "POST",
headers: { "Content-Type": "application/octet-stream" },