fix(projects): avoid retrieving cached HTML

This commit is contained in:
Azir 2024-08-21 18:10:12 +08:00
parent 7fa55905fc
commit f7ec80cb19

View File

@ -52,9 +52,7 @@ export function setupAppVersionNotification() {
} }
async function getHtmlBuildTime() { async function getHtmlBuildTime() {
const baseURL = import.meta.env.VITE_BASE_URL; const res = await fetch(`/index.html?time=${Date.now()}`);
const res = await fetch(`${baseURL}index.html`);
const html = await res.text(); const html = await res.text();