diff --git a/src/pages/index.vue b/src/pages/index.vue index 5023377..b95216b 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -62,7 +62,7 @@ let otaStatusPollCount = 0; let otaUpdateRunId = 0; // 首页 OTA 轮询采用请求次数和总时长双重兜底,避免更新中状态长期卡住。 const OTA_TASK_STATUS_POLL_INTERVAL = 2000; -const OTA_TASK_STATUS_MAX_POLL_COUNT = 10; +const OTA_TASK_STATUS_MAX_POLL_COUNT = 15; const OTA_TASK_STATUS_TIMEOUT = 30000; // 清理首页 OTA 更新定时器,避免弹窗关闭或页面卸载后继续轮询。