mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
✨ feat: 修复图片加载过大问题
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
<div class="music-info">
|
<div class="music-info">
|
||||||
<div class="music-cover">
|
<div class="music-cover">
|
||||||
<n-image
|
<n-image
|
||||||
:src="getCoverImgUrl"
|
:src="getImgUrl(getCoverImgUrl, '500y500')"
|
||||||
class="cover-img"
|
class="cover-img"
|
||||||
preview-disabled
|
preview-disabled
|
||||||
:class="setAnimationClass('animate__fadeIn')"
|
:class="setAnimationClass('animate__fadeIn')"
|
||||||
@@ -216,8 +216,9 @@ const loadDataByType = async (type: string, id: string) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getCoverImgUrl = computed(() => {
|
const getCoverImgUrl = computed(() => {
|
||||||
if (listInfo.value?.coverImgUrl) {
|
const coverImgUrl = listInfo.value?.coverImgUrl;
|
||||||
return listInfo.value.coverImgUrl;
|
if (coverImgUrl) {
|
||||||
|
return coverImgUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
const song = songList.value[0];
|
const song = songList.value[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user