feat(qq): add radar FM stream

This commit is contained in:
lTinchl committed 2026-06-06 21:09:57 +08:00
1 parent a861b41809
commit e0d17cf404
6 files changed
+217 -84

No files matched your search

+11
View File
@@ -397,6 +397,17 @@ export const usePlayerStore = defineStore('player', {
if (bot) bot.playMode = mode;
},
async startFm(platform: Source = 'netease') {
if (!this.activeBotId) return;
const res = await axios.post(`/api/player/${this.activeBotId}/fm`, { platform });
if (res.data?.message) {
this.notify(res.data.message, res.data.ok === false ? 'error' : 'info');
}
this._setTiming(this.activeBotId, { serverElapsed: 0 });
this._syncAfterAction();
this.fetchQueue();
},
async fetchHomeData() {
// Always check auth status first — if it changed since the cached
// fetch (e.g., user logged in/out as a different account), the