main
vue 25 lines 598 Bytes
Raw
1 <template>
2 <div class="page flex flex-col gap-8">
3 <UsersList :highlight />
4
5 <AllowedEmails />
6 </div>
7 </template>
8
9 <script setup lang="ts">
10 import { defineAsyncComponent, onBeforeMount, ref } from "vue"
11 import { useRoute } from "vue-router"
12 import UsersList from "@/components/users/UsersList.vue"
13
14 const AllowedEmails = defineAsyncComponent(() => import("@/components/sso/AllowedEmails.vue"))
15
16 const route = useRoute()
17
18 const highlight = ref<string | undefined>(undefined)
19
20 onBeforeMount(() => {
21 if (route.query?.user_id) {
22 highlight.value = route.query.user_id.toString()
23 }
24 })
25 </script>