Commit f0fed940 by lijiabin

【需求 17679】 perf: 首页图片懒加载

parent a1f88142
...@@ -72,9 +72,11 @@ ...@@ -72,9 +72,11 @@
<!-- 图片区域 --> <!-- 图片区域 -->
<div v-show="item.faceUrl" class="relative flex-shrink-0 w-36 h-24"> <div v-show="item.faceUrl" class="relative flex-shrink-0 w-36 h-24">
<img <el-image
:src="item.faceUrl + '?x-oss-process=image/format,webp'" :src="item.faceUrl + '?x-oss-process=image/format,webp'"
alt="文章配图" alt="文章配图"
fit="cover"
:lazy="true"
class="w-full h-full object-cover rounded-lg sm:rounded-lg group-hover:scale-105 transition-transform duration-300" class="w-full h-full object-cover rounded-lg sm:rounded-lg group-hover:scale-105 transition-transform duration-300"
loading="lazy" loading="lazy"
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment