fix(playback): preserve the current queue until direct play starts

This commit is contained in:
TIANYAO ZHANG committed 2026-11-18 18:37:50 +08:00
1 parent de6b050646
commit b0393b42b2
5 files changed
+206 -62

No files matched your search

+2 -1
View File
@@ -585,7 +585,8 @@ export const usePlayerStore = defineStore('player', {
const handled = await this.checkBilibiliMultiPart(song, 'add');
if (handled) return;
}
await axios.post(`/api/player/${this.activeBotId}/add-song`, { song });
const res = await axios.post(`/api/player/${this.activeBotId}/add-song`, { song });
if (res.data?.ok === false && res.data?.message) this.notify(res.data.message, 'error');
},
async playPlaylist(playlistId: string, platform = 'netease') {