mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix mobile web responsive controls
This commit is contained in:
1 parent
9179780afb
commit
0bf34d8652
4 files changed
+1189
-8
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user