feat: add error boundary component and improve auth layout
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import ErrorBoundary from '@/components/common/ErrorBoundary.vue'
|
||||
import Logo from '@/components/common/Logo.vue'
|
||||
</script>
|
||||
|
||||
@@ -9,11 +10,13 @@ import Logo from '@/components/common/Logo.vue'
|
||||
<UPageCard :ui="{ wrapper: 'flex flex-col flex-1 items-center', header: 'mb-4' }">
|
||||
<template #header>
|
||||
<slot name="logo">
|
||||
<Logo />
|
||||
<Logo size="lg" :link-to-home="false" />
|
||||
</slot>
|
||||
</template>
|
||||
|
||||
<slot />
|
||||
<ErrorBoundary>
|
||||
<slot />
|
||||
</ErrorBoundary>
|
||||
</UPageCard>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user