feat(更新应用): 优化更新应用提示
build.yaml / build (push) Successful in 42s

This commit is contained in:
xiaoqidun committed 2026-10-17 18:47:24 +08:00
1 parent 2e5241733a
commit eaefd730ae
4 files changed
+138 -69

No files matched your search

+2 -1
View File
@@ -106,8 +106,9 @@ async function readResource(event, navigation) {
}
async function updateBundle(meta) {
const signal = AbortSignal.timeout(120000);
const resources = await Promise.all(ASSETS.map(async (url) => {
const response = await fetch(new Request(url, { cache: "no-store" }));
const response = await fetch(new Request(url, { cache: "no-store", signal }));
if (!response.ok || response.redirected) {
throw new Error("资源下载失败");
}