feat: mongodb readyState
This commit is contained in:
@ -1,13 +1,16 @@
|
||||
<script lang="ts" setup>
|
||||
import './styles/global.css'
|
||||
|
||||
const readyState = computedAsync(async () => await rpc.readyState())
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Html>
|
||||
<Body h-screen>
|
||||
<NuxtLayout>
|
||||
<NuxtLayout v-if="readyState === 1">
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
<Connection v-else :connection="readyState" />
|
||||
</Body>
|
||||
</Html>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user