mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
16 lines
334 B
Vue
16 lines
334 B
Vue
|
<script lang="ts" setup>
|
||
|
const dataStore = useData()
|
||
|
const { selectedCategoryId, filteredProjects } = storeToRefs(dataStore)
|
||
|
|
||
|
const route = useRoute()
|
||
|
|
||
|
onMounted(() => {
|
||
|
if (route.params.id)
|
||
|
selectedCategoryId.value = route.params.id as string
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<ProjectGrid :projects="filteredProjects" />
|
||
|
</template>
|