mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-03 03:12:51 +08:00
fix(playback): preserve the current queue until direct play starts
This commit is contained in:
1 parent
de6b050646
commit
b0393b42b2
5 files changed
+206
-62
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user