mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix: address Phase 7 review — move WS/theme init to App.vue, wire Queue component
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
41d9e88c8e
commit
5041a4f3f7
3 files changed
+17
-8
No files matched your search
@@ -54,11 +54,9 @@ import { ref, onMounted } from 'vue';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import axios from 'axios';
|
||||
import { usePlayerStore } from '../stores/player.js';
|
||||
import { useWebSocket } from '../composables/useWebSocket.js';
|
||||
import CoverArt from '../components/CoverArt.vue';
|
||||
|
||||
const store = usePlayerStore();
|
||||
const { connect } = useWebSocket();
|
||||
|
||||
interface Playlist {
|
||||
id: string;
|
||||
@@ -70,10 +68,6 @@ interface Playlist {
|
||||
const playlists = ref<Playlist[]>([]);
|
||||
|
||||
onMounted(async () => {
|
||||
store.loadTheme();
|
||||
connect();
|
||||
await store.fetchBots();
|
||||
|
||||
try {
|
||||
const res = await axios.get('/api/music/recommend/playlists');
|
||||
playlists.value = res.data.playlists;
|
||||
|
||||
Reference in new issue
Block a user