fixed an error with loading the welcome message when logged in
This commit is contained in:
@@ -14,8 +14,10 @@ function goToApplication() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
let policy = await getWelcomeMessage() as any;
|
if (user.state == 'member') {
|
||||||
welcomeRef.value.innerHTML = policy;
|
let policy = await getWelcomeMessage() as any;
|
||||||
|
welcomeRef.value.innerHTML = policy;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const welcomeRef = ref<HTMLElement>(null);
|
const welcomeRef = ref<HTMLElement>(null);
|
||||||
@@ -23,7 +25,12 @@ const welcomeRef = ref<HTMLElement>(null);
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="user.state == 'guest'" class="bg-background text-foreground px-6 py-12 selection:bg-primary/10">
|
<div v-if="user.state == 'member'" class="mt-10">
|
||||||
|
<div ref="welcomeRef" class="bookstack-container">
|
||||||
|
<!-- bookstack -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="text-foreground px-6 py-12 selection:bg-primary/10">
|
||||||
<div class="max-w-5xl mx-auto space-y-8">
|
<div class="max-w-5xl mx-auto space-y-8">
|
||||||
|
|
||||||
<header class="space-y-4">
|
<header class="space-y-4">
|
||||||
@@ -124,10 +131,5 @@ const welcomeRef = ref<HTMLElement>(null);
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="mt-10">
|
|
||||||
<div ref="welcomeRef" class="bookstack-container">
|
|
||||||
<!-- bookstack -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user