Exercise 3.1 fully implemented

This commit is contained in:
2024-11-20 12:27:41 +01:00
parent 9d41a14926
commit 366f1060e3
5 changed files with 34 additions and 16 deletions

View File

@@ -3,10 +3,18 @@ import { useBandStore } from '@/stores/band.store';
import cardViewHorizontal from '@/components/basics/cardViewHorizontal.vue';
import bandListItem from '@/components/pageParts/bandListItem.vue';
import bandFilterbar from './bandFilterbar.vue';
import { watch } from 'vue';
import { useRouter } from 'vue-router';
const bandStore = useBandStore()
const router = useRouter()
bandStore.getBands()
// Refetch bands if query parameter changes
watch(() => router.currentRoute.value.query, () => {
bandStore.getBands()
})
</script>
<template>