fix: 静态文件地址追加随机戳避免缓存
This commit is contained in:
1 parent
bc1f897660
commit
7edcf1703e
1 file changed
+1
-1
@@ -17,5 +17,5 @@ export function parseUrlPath(path: string) {
|
|||||||
const baseUrl = import.meta.env.PROD
|
const baseUrl = import.meta.env.PROD
|
||||||
? sessionGet('baseUrl') || import.meta.env.VITE_API_BASE_URL
|
? sessionGet('baseUrl') || import.meta.env.VITE_API_BASE_URL
|
||||||
: import.meta.env.VITE_API_BASE_URL;
|
: import.meta.env.VITE_API_BASE_URL;
|
||||||
return `${baseUrl}${path}`;
|
return `${baseUrl}${path}?r=${Math.random().toFixed(2)}`;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user