From f7ec80cb197875e4a146753ba6011c94d5a11d5c Mon Sep 17 00:00:00 2001 From: Azir <2075125282@qq.com> Date: Wed, 21 Aug 2024 18:10:12 +0800 Subject: [PATCH] fix(projects): avoid retrieving cached HTML --- src/plugins/app.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/app.ts b/src/plugins/app.ts index c54601ca7..6dc88fed7 100644 --- a/src/plugins/app.ts +++ b/src/plugins/app.ts @@ -52,9 +52,7 @@ export function setupAppVersionNotification() { } async function getHtmlBuildTime() { - const baseURL = import.meta.env.VITE_BASE_URL; - - const res = await fetch(`${baseURL}index.html`); + const res = await fetch(`/index.html?time=${Date.now()}`); const html = await res.text();