mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 22:56:41 +08:00
fix(projects): fix app version notification plugin with sub deploy path
This commit is contained in:
parent
91de4a8ef7
commit
0d67a75444
@ -64,7 +64,8 @@ export function setupAppVersionNotification() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getHtmlBuildTime() {
|
async function getHtmlBuildTime() {
|
||||||
const res = await fetch(`/index.html?time=${Date.now()}`);
|
const baseUrl = import.meta.env.VITE_BASE_URL === '/' ? '' : import.meta.env.VITE_BASE_URL
|
||||||
|
const res = await fetch(`${baseUrl}/index.html?time=${Date.now()}`);
|
||||||
|
|
||||||
const html = await res.text();
|
const html = await res.text();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user