diff --git a/src/components/Player.vue b/src/components/Player.vue index 9684c3a..c1fd923 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -181,6 +181,14 @@ watch(() => playQueueStore.playMode.shuffle, (isShuffle) => { playQueueStore.currentIndex = playQueueStore.shuffleList[playQueueStore.currentIndex] } }) + +function getCurrentTrack() { + if (playQueueStore.playMode.shuffle) { + return playQueueStore.list[playQueueStore.shuffleList[playQueueStore.currentIndex]] + } else { + return playQueueStore.list[playQueueStore.currentIndex] + } +}