Files
evilspins/app/pages/box/[id].vue
valere f9aeb03f82
All checks were successful
Deploy App / build (push) Successful in 1m31s
Deploy App / deploy (push) Successful in 15s
WIP: add TODO and small fixies
2025-11-11 19:23:33 +01:00

27 lines
588 B
Vue

<template>
<boxes />
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router'
import { useUiStore } from '~/store/ui'
import { useDataStore } from '~/store/data'
// Configuration du layout
definePageMeta({
layout: 'default'
})
const uiStore = useUiStore()
const dataStore = useDataStore()
const route = useRoute()
onMounted(async () => {
await dataStore.loadData()
const idParam = Array.isArray(route.params.id) ? route.params.id[0] : route.params.id
if (typeof idParam === 'string' && idParam.length > 0) {
uiStore.selectBox(idParam)
}
})
</script>