mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 14:46:41 +08:00
fix(setupAppVersionNotification): 修复当处于处于二级目录时,请求地址错误的bug
This commit is contained in:
parent
9ad5d7170a
commit
613a24c189
@ -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