mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-18 19:47:29 +08:00
🐞 fix: 修复搜索的播放列表错误问题
This commit is contained in:
@@ -139,7 +139,7 @@ watch(
|
|||||||
const store = useStore()
|
const store = useStore()
|
||||||
|
|
||||||
const handlePlay = (item: any) => {
|
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)
|
const musicIndex = (tracks.findIndex((music: any) => music.id == item.id) || 0)
|
||||||
store.commit('setPlayList', tracks)
|
store.commit('setPlayList', tracks)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user