From ce56842949860391b959f09eda52e3fade36ff83 Mon Sep 17 00:00:00 2001 From: haolihi <1252445494@qq.com> Date: Fri, 1 Sep 2023 02:49:21 +0000 Subject: [PATCH] =?UTF-8?q?update=20imageknife/src/main/ets/components/ima?= =?UTF-8?q?geknife/ImageKnifeComponent.ets.=20=E4=BF=AE=E5=A4=8D=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E5=B1=8F=E8=94=BD=E5=86=85=E5=AD=98=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haolihi <1252445494@qq.com> --- .../main/ets/components/imageknife/ImageKnifeComponent.ets | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imageknife/src/main/ets/components/imageknife/ImageKnifeComponent.ets b/imageknife/src/main/ets/components/imageknife/ImageKnifeComponent.ets index a1c812a..c077af6 100644 --- a/imageknife/src/main/ets/components/imageknife/ImageKnifeComponent.ets +++ b/imageknife/src/main/ets/components/imageknife/ImageKnifeComponent.ets @@ -182,10 +182,8 @@ export struct ImageKnifeComponent { request.retrieveDataFromCache(this.imageKnifeOption.onlyRetrieveFromCache) } - if (this.imageKnifeOption.isCacheable) { - request.skipMemoryCache(!this.imageKnifeOption.isCacheable) - } - + request.skipMemoryCache(!this.imageKnifeOption.isCacheable) + if (this.imageKnifeOption.strategy) { request.diskCacheStrategy(this.imageKnifeOption.strategy) }