Skip to content

Commit fe20aea

Browse files
Update src/composables/List/useListActions.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d02805b commit fe20aea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/composables/List/useListActions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export const useListActions = () => {
1212
/**
1313
* 播放全部歌曲
1414
*/
15-
const playAllSongs = (songs: SongType[], playListId?: number) => {
15+
const playAllSongs = async (songs: SongType[], playListId?: number) => {
1616
if (!songs?.length) return;
1717
// 如果是单曲循环模式,自动切换为顺序播放
1818
if (statusStore.playSongMode === "repeat-once") {
19-
player.togglePlayMode("repeat");
19+
await player.togglePlayMode("repeat");
2020
}
21-
player.updatePlayList(songs, undefined, playListId);
21+
await player.updatePlayList(songs, undefined, playListId);
2222
};
2323

2424
return {

0 commit comments

Comments
 (0)