fix mobile web responsive controls

This commit is contained in:
L1uyQwQ committed 2026-05-07 16:58:31 +08:00
1 parent 9179780afb
commit 0bf34d8652
4 files changed
+1189 -8

No files matched your search

+4
View File
@@ -376,11 +376,15 @@ export const usePlayerStore = defineStore('player', {
async setVolume(volume: number) {
if (!this.activeBotId) return;
await axios.post(`/api/player/${this.activeBotId}/volume`, { volume });
const bot = this.bots.find((b) => b.id === this.activeBotId);
if (bot) bot.volume = volume;
},
async setMode(mode: string) {
if (!this.activeBotId) return;
await axios.post(`/api/player/${this.activeBotId}/mode`, { mode });
const bot = this.bots.find((b) => b.id === this.activeBotId);
if (bot) bot.playMode = mode;
},
async fetchHomeData() {