feat(projects): app version notification plugin support sub deploy path. close #668
This commit is contained in:
parent
d088f81345
commit
a53eb10cdf
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user