main
vue 21 lines 461 Bytes
Raw
1 <template>
2 <div class="page">
3 <SocAlertsFullList :highlight />
4 </div>
5 </template>
6
7 <script setup lang="ts">
8 import { onBeforeMount, ref } from "vue"
9 import { useRoute } from "vue-router"
10 import SocAlertsFullList from "@/components/soc/SocAlerts/SocAlertsFullList.vue"
11
12 const route = useRoute()
13
14 const highlight = ref<string | undefined>(undefined)
15
16 onBeforeMount(() => {
17 if (route.query?.id) {
18 highlight.value = route.query.id.toString()
19 }
20 })
21 </script>