Skip to content

Commit

Permalink
fix: image lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Mar 25, 2024
1 parent fcad3f6 commit 1555c45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/widgets/CVList/VoiceLangTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineComponent({
>
<img
class="lazyload"
:src="getAvatarURL(voiceId).toString()"
:data-src="getAvatarURL(voiceId).toString()"
width="80"
/>
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/widgets/EnemiesListV2/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export default defineComponent({
key: "icon",
render(row) {
const img = h("img", {
src: `/images/${getImagePath(`头像_敌人_${row.name}.png`)}`,
"data-src": `/images/${getImagePath(`头像_敌人_${row.name}.png`)}`,
class: "lazyload",
style: {
width: "65px",
Expand Down Expand Up @@ -525,7 +525,7 @@ export default defineComponent({
<img
class="lazyload"
style="width: 65px; height: 65px"
:src="`/images/${getImagePath(`头像_敌人_${row.name}.png`)}`"
:data-src="`/images/${getImagePath(`头像_敌人_${row.name}.png`)}`"
/>
</a>
<NPagination
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/VoiceTable/VoicePlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default defineComponent({
:download="`${fileName}.wav`"
>
<img
class="md:w-10 <sm:w-7 cursor-pointer lazyload"
class="md:w-10 <sm:w-7 cursor-pointer"
title="下载"
data-src="/images/f/f1/Download.png"
/>
Expand Down

0 comments on commit 1555c45

Please sign in to comment.