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