From 2af2a0ec4f4615eb85cf28f17fbaa528e971f65c Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 22 Dec 2025 16:19:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E7=89=87=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=8A=9F=E8=83=BD):=20=E5=B0=86=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E7=9A=84=E8=BF=9E=E6=8E=A5=E5=A4=B4=E4=B9=9F=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=B8=BAoss=E5=9B=BE=E7=89=87=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/imageCacheManager.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }