feat(projects): app version notification plugin support sub deploy path. close #668

This commit is contained in:
Soybean 2024-11-17 22:27:00 +08:00
parent d088f81345
commit a53eb10cdf

View File

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