🐞 fix: 修复搜索的播放列表错误问题

This commit is contained in:
alger
2023-12-28 11:40:29 +08:00
parent a2c49d354e
commit 8da7fdabe5
+1 -1
View File
@@ -139,7 +139,7 @@ watch(
const store = useStore()
const handlePlay = (item: any) => {
const tracks = searchDetail.value?.result.songs || []
const tracks = searchDetail.value?.songs || []
const musicIndex = (tracks.findIndex((music: any) => music.id == item.id) || 0)
store.commit('setPlayList', tracks)
}