Skip to content

Commit

Permalink
chore: change the default play mode to list-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarkkkk committed Aug 27, 2024
1 parent 5ba035d commit 0b84ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/usePlaylistStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const usePlaylistStore = defineStore('playlist', () => {
const historyPlaylist = ref<Song[]>([])
const currentSong = ref<Song | null>(null)
const playMode = ref<'list-loop' | 'list-sequent' | 'song-loop' | 'radio' | 'radio-song-loop'>(
'list-sequent'
'list-loop'
)
const { updateAudioStatus, setLoop } = useAudioStore()
const { audioStatus } = storeToRefs(useAudioStore())
Expand Down Expand Up @@ -163,7 +163,7 @@ export const usePlaylistStore = defineStore('playlist', () => {
historyPlaylist.value = playlist.value
playlist.value = list.slice()
await updateCurrentSong(shouldPlay || list[0] || null)
updatePlayMode('list-sequent')
updatePlayMode('list-loop')
}

async function switchToRadio() {
Expand Down

0 comments on commit 0b84ebf

Please sign in to comment.