feat: add img tag with loading attribute for lazy loading

This commit is contained in:
hawtimzhang 2022-05-02 00:47:42 +08:00
parent 107bf53a39
commit fab099c6fb
17 changed files with 46 additions and 23 deletions

View file

@ -10,6 +10,7 @@
<img
v-if="!isAlbum"
:src="imgUrl"
loading="lazy"
:class="{ hover: focus }"
@click="goToAlbum"
/>