fix(projects): avoid retrieving cached HTML (#605)

This commit is contained in:
青菜白玉汤 2024-08-21 18:25:33 +08:00 committed by GitHub
parent 7fa55905fc
commit ef6cf93d96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();