fix: 静态文件地址追加随机戳避免缓存
This commit is contained in:
@@ -17,5 +17,5 @@ export function parseUrlPath(path: string) {
|
||||
const baseUrl = import.meta.env.PROD
|
||||
? sessionGet('baseUrl') || 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