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