🦄 refactor(样式): 修改样式 修改图片加载方式

This commit is contained in:
algerkc@qq.com
2023-12-15 14:24:58 +08:00
parent 4f7d066376
commit 086bbb8958
13 changed files with 126 additions and 49 deletions
+5 -3
View File
@@ -9,9 +9,11 @@
:class="setAnimationClass('animate__backInUp')"
:style="setAnimationDelay(index, 100)"
>
<img
<n-image
class="recommend-album-list-item-img"
:src="item.blurPicUrl + '?param=200y200'"
:src="getImgUrl( item.blurPicUrl, '200y200')"
lazy
preview-disabled
/>
<div class="recommend-album-list-item-content">{{ item.name }}</div>
</div>
@@ -24,7 +26,7 @@
import { getNewAlbum } from "@/api/home"
import { ref, onMounted } from "vue";
import type { IAlbumNew } from "@/type/album"
import { setAnimationClass, setAnimationDelay } from "@/utils";
import { setAnimationClass, setAnimationDelay, getImgUrl } from "@/utils";
const albumData = ref<IAlbumNew>()