fix: prevent hydration mismatch after refreshing settings (#663)

zio/stable
Ayaka Rizumu 2022-12-30 23:29:34 +08:00 committed by GitHub
parent 1bb8963d98
commit ca37b65962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 53 additions and 51 deletions

View File

@ -9,6 +9,7 @@ const isRootPath = computedEager(() => route.name === 'settings')
</script>
<template>
<div>
<div min-h-screen flex>
<div border="r base" :class="isRootPath ? 'block lg:flex-none flex-1' : 'hidden lg:block'">
<MainContent>
@ -63,4 +64,5 @@ const isRootPath = computedEager(() => route.name === 'settings')
<NuxtPage />
</div>
</div>
</div>
</template>