webp格式图片,实现首页轮盘跳动动画

Signed-off-by: 'LuQian-KUN' <gaopengcheng11@h-partners.com>
This commit is contained in:
LuQian-KUN 2024-04-09 19:30:49 +08:00
parent c68ef7f8ad
commit f9de62f097
1 changed files with 2 additions and 2 deletions

View File

@ -388,8 +388,8 @@ export class RequestManager {
return;
}
// 解析磁盘文件 gif 和 svg
if (ImageKnifeData.GIF == filetype && !this.options.dontAnimateFlag) {
// 解析磁盘文件 gif、webp 和 svg
if ((ImageKnifeData.GIF == filetype || ImageKnifeData.WEBP == filetype) && !this.options.dontAnimateFlag) {
// 处理gif
this.gifProcess(onComplete, onError, source, filetype)