diff --git a/src/utils/imageCacheManager.js b/src/utils/imageCacheManager.js index 2f2cb2a..19834f5 100644 --- a/src/utils/imageCacheManager.js +++ b/src/utils/imageCacheManager.js @@ -209,9 +209,12 @@ class ImageCacheManager { return true } - // 新增:允许缓存特定域名下的资源 + // 允许缓存特定域名下的资源 const ossBaseUrl = 'https://tkm-likei.oss-ap-southeast-1.aliyuncs.com/h5' - if (url.startsWith(ossBaseUrl)) { + // 允许缓存开发环境下的代理路径 + const devProxyPath = '/oss/h5/' + + if (url.startsWith(ossBaseUrl) || url.startsWith(devProxyPath)) { return true }