补充:解决单个图片解码后内存占用超过内存缓存最大值,导致无法显示图片的问题

Signed-off-by: madixin <madixin@huawei.com>
This commit is contained in:
madixin 2024-11-06 16:52:09 +08:00
parent 95ffcb9e74
commit 8adc342444
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export class MemoryLruCache implements IMemoryCache {
}
let size = this.getImageKnifeDataSize(value)
if (size <= 0 && size >= this.maxMemory) {
if (size <= 0 || size >= this.maxMemory) {
return
}