feat: 版本更新(日常小更新),清除网络图片
This commit is contained in:
parent
389179b2de
commit
50a46d0d4e
2
.env
2
.env
@ -1,5 +1,5 @@
|
||||
# 应用版本号
|
||||
VITE_APP_VERSION=2.2.3
|
||||
VITE_APP_VERSION=2.2.4
|
||||
|
||||
# 版本类型
|
||||
# major:重大更新(清除除了白名单外的所有缓存:用户缓存、图片缓存和assets缓存)
|
||||
|
||||
@ -2,13 +2,13 @@
|
||||
// 图片缓存版本号配置
|
||||
export const IMAGE_CACHE_VERSION = {
|
||||
// 图片缓存版本号,仅在图片资源有重大变化时更新
|
||||
version: '1.0.0', // 可以根据需要更新此版本号
|
||||
version: '1.0.1', // 可以根据需要更新此版本号
|
||||
|
||||
// 缓存类型控制:'images'、'assets' 或 'all'
|
||||
// 'images': 只清除图片缓存 (likei-images-v)
|
||||
// 'assets': 只清除资产缓存 (likei-assets-v)
|
||||
// 'all': 清除所有缓存
|
||||
cacheType: 'all', // 默认清除所有缓存,可根据需要修改
|
||||
cacheType: 'images', // 默认清除所有缓存,可根据需要修改
|
||||
|
||||
// 版本更新说明(用于记录更新原因)
|
||||
updateReason: 'Initial image cache version for major release',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user