feat: add versioning support for assets and update version to 1.0.0
All checks were successful
Deploy / deploy (push) Successful in 12s

This commit is contained in:
M1ngdaXie
2026-05-07 21:46:53 +08:00
parent 74554210dd
commit 01a429f8e1
6 changed files with 17 additions and 6 deletions

5
src/config/version.ts Normal file
View File

@@ -0,0 +1,5 @@
export const APP_VERSION = '1.0.0';
export function withVersion(url: string): string {
return url.includes('?') ? `${url}&v=${APP_VERSION}` : `${url}?v=${APP_VERSION}`;
}