mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 15:47:23 +08:00
🌈 style: 去除无用代码
This commit is contained in:
@@ -47,7 +47,6 @@ const formatDetail = computed(() => (detail: any) => {
|
||||
|
||||
const handlePlay = (item: any) => {
|
||||
const tracks = props.songList || []
|
||||
const musicIndex = (tracks.findIndex((music: any) => music.id == item.id) || 0)
|
||||
store.commit('setPlayList', tracks)
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ onMounted(() => {
|
||||
})
|
||||
|
||||
const handlePlay = (item: any) => {
|
||||
const musicIndex = (recommendMusic.value?.result.findIndex((music: any) => music.id == item.id) || 0) + 1
|
||||
store.commit('setPlayList', recommendMusic.value?.result)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user