update imageknife/src/main/ets/components/imageknife/ImageKnifeComponent.ets.

修复手动屏蔽内存缓存不生效的问题

Signed-off-by: haolihi <1252445494@qq.com>
This commit is contained in:
haolihi 2023-09-01 02:49:21 +00:00 committed by Gitee
parent f764b6e02a
commit ce56842949
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 4 deletions

View File

@ -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)
}