fix fetch

This commit is contained in:
2026-01-23 12:20:40 +00:00
parent e9fb87b26f
commit ffc8604807

View File

@@ -3,6 +3,7 @@ import { ref, computed, onMounted, onUnmounted } from "vue";
import { useSongsStore } from "@/stores/songs"; import { useSongsStore } from "@/stores/songs";
const songsStore = useSongsStore(); const songsStore = useSongsStore();
songsStore.fetchSongs();
const idx = ref(0); const idx = ref(0);
const song = computed(() => songsStore.songs[idx.value]); const song = computed(() => songsStore.songs[idx.value]);