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