From e27ed22c161cd0b7bf151605961a66634fe17bad Mon Sep 17 00:00:00 2001 From: alger Date: Thu, 12 Sep 2024 15:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=AE=8C=E5=96=84=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=AD=8C=E5=8D=95=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/SearchItem.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/common/SearchItem.vue b/src/components/common/SearchItem.vue index feb404d..4559808 100644 --- a/src/components/common/SearchItem.vue +++ b/src/components/common/SearchItem.vue @@ -16,6 +16,7 @@ v-model:show="showPop" :name="item.name" :song-list="songList" + :list-info="listInfo" /> @@ -42,11 +43,14 @@ const url = ref(''); const songList = ref([]); const showPop = ref(false); +const listInfo = ref(null); const handleClick = async () => { + listInfo.value = null; if (props.item.type === '专辑') { showPop.value = true; const res = await getAlbum(props.item.id); + console.log('res.data', res.data); songList.value = res.data.songs.map((song: any) => { song.al.picUrl = song.al.picUrl || props.item.picUrl; return song; @@ -57,6 +61,7 @@ const handleClick = async () => { showPop.value = true; const res = await getListDetail(props.item.id); songList.value = res.data.playlist.tracks; + listInfo.value = res.data.playlist; } if (props.item.type === 'mv') {