|
@@ -5,7 +5,7 @@ declare global { // 设置全局属性
|
|
|
}
|
|
}
|
|
|
export function getVersion() {
|
|
export function getVersion() {
|
|
|
// main.js 和 拦截器中加入
|
|
// main.js 和 拦截器中加入
|
|
|
- if (('pendingETAG' in window && window.pendingETAG) || import.meta.env.VITE_ENV === 'development') return
|
|
|
|
|
|
|
+ if (('pendingETAG' in window && window.pendingETAG) || import.meta.env.DEV) return
|
|
|
const htmlFileUrl = `${location.origin}${location.pathname}`
|
|
const htmlFileUrl = `${location.origin}${location.pathname}`
|
|
|
window.pendingETAG = true
|
|
window.pendingETAG = true
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|