| 1 | <template> |
| 2 | <div class="page"> |
| 3 | <AlertsList :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 AlertsList from "@/components/incidentManagement/alerts/AlertsList.vue" |
| 11 | |
| 12 | const route = useRoute() |
| 13 | |
| 14 | const highlight = ref<string | undefined>(undefined) |
| 15 | |
| 16 | onBeforeMount(() => { |
| 17 | if (route.query?.alert_id) { |
| 18 | highlight.value = route.query.alert_id.toString() || undefined |
| 19 | } |
| 20 | }) |
| 21 | </script> |