🚧 Improvements
This commit is contained in:
parent
5b6d5f3c97
commit
a5a71e71a5
@ -3,3 +3,9 @@
|
|||||||
<NuxtPage></NuxtPage>
|
<NuxtPage></NuxtPage>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
useHead({
|
||||||
|
title: "Verifoo"
|
||||||
|
})
|
||||||
|
</script>
|
||||||
@ -21,18 +21,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type {Realm} from "~/realm/Realm";
|
import type {Realm} from "~/realm/Realm";
|
||||||
import axios from "axios";
|
|
||||||
|
|
||||||
const realmKey = useRoute().params.realm as string;
|
const realmKey = useRoute().params.realm as string;
|
||||||
|
const { data: realm } = await useFetch<Realm>(useRuntimeConfig().public.baseUrl + '/realms/' + realmKey)
|
||||||
const realm: Ref<Realm | undefined> = ref();
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
axios.get(useRuntimeConfig().public.baseUrl + '/realms/' + realmKey)
|
|
||||||
.then((response) => {
|
|
||||||
realm.value = response.data;
|
|
||||||
})
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user