dev #1
1 changed files with 41 additions and 42 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<Loading v-if="!mounted" />
|
<NuxtLayout>
|
||||||
<div v-else id="root-container" style="margin-top: 5dvh;">
|
<div id="root-container" style="margin-top: 5dvh;">
|
||||||
<div id="main-container">
|
<div id="main-container">
|
||||||
<div v-if="!instanceUrl">
|
<div v-if="!instanceUrl">
|
||||||
<div v-if="instanceError" style="color: red;">
|
<div v-if="instanceError" style="color: red;">
|
||||||
|
@ -44,12 +44,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { FetchError } from 'ofetch';
|
import { FetchError } from 'ofetch';
|
||||||
|
|
||||||
const mounted = ref(false);
|
|
||||||
const redirectTo = useRoute().query.redirect_to;
|
const redirectTo = useRoute().query.redirect_to;
|
||||||
|
|
||||||
const apiVersion = useRuntimeConfig().public.apiVersion;
|
const apiVersion = useRuntimeConfig().public.apiVersion;
|
||||||
|
@ -64,7 +64,6 @@ if (auth.accessToken.value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
mounted.value = true;
|
|
||||||
const cookie = useCookie("instance_url").value;
|
const cookie = useCookie("instance_url").value;
|
||||||
instanceUrl.value = cookie;
|
instanceUrl.value = cookie;
|
||||||
console.log(cookie);
|
console.log(cookie);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue