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

This commit is contained in:
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

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>