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:
saopig1andClaude Opus 4.6 committed 2026-03-30 01:02:42 +08:00
1 parent 41d9e88c8e
commit 5041a4f3f7
3 files changed
+17 -8

No files matched your search

+9 -1
View File
@@ -9,13 +9,21 @@
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { computed, onMounted } from 'vue';
import { usePlayerStore } from './stores/player.js';
import { useWebSocket } from './composables/useWebSocket.js';
import Navbar from './components/Navbar.vue';
import Player from './components/Player.vue';
const playerStore = usePlayerStore();
const theme = computed(() => playerStore.theme);
const { connect } = useWebSocket();
onMounted(() => {
playerStore.loadTheme();
connect();
playerStore.fetchBots();
});
</script>
<style lang="scss">