mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-05-18 11:37:31 +08:00
🎈 perf: 添加自动导入,优化性能
This commit is contained in:
@@ -64,7 +64,7 @@ const formatDetail = computed(() => (detail: any) => {
|
||||
const handlePlay = (item: any) => {
|
||||
const tracks = recordList.value || []
|
||||
const musicIndex = (tracks.findIndex((music: any) => music.id == item.id) || 0)
|
||||
store.commit('setPlayList', tracks.slice(musicIndex))
|
||||
store.commit('setPlayList', tracks)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user