| 1 | <template> |
| 2 | <div class="page @container flex flex-col gap-6"> |
| 3 | <DashboardViewer v-if="dashboardId" :dashboard-id /> |
| 4 | </div> |
| 5 | </template> |
| 6 | |
| 7 | <script setup lang="ts"> |
| 8 | import { useRoute } from "vue-router" |
| 9 | import DashboardViewer from "@/components/dashboards/DashboardViewer.vue" |
| 10 | import { toNumber } from "@/utils/format" |
| 11 | |
| 12 | const route = useRoute() |
| 13 | const dashboardId = route.params.id ? toNumber(route.params.id as string) : null |
| 14 | </script> |