mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 23:19:37 +00:00
23 lines
716 B
Vue
23 lines
716 B
Vue
<script setup lang="ts">
|
|
import type { NuxtError } from '#app'
|
|
import { useI18n } from 'vue-i18n'
|
|
import { Button } from '@/components/ui/button'
|
|
|
|
const { t } = useI18n()
|
|
|
|
const props = defineProps({
|
|
error: Object as () => NuxtError,
|
|
})
|
|
console.error(props.error, 'error')
|
|
const handleError = () => clearError({ redirect: '/' })
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLayout>
|
|
<div class="rounded-xl p-5 bg-white/50 backdrop-blur-xl w-full lg:w-200 flex flex-col items-center justify-center min-h-[50vh] mt-5 gap-10">
|
|
<div class="font-bold text-5xl">{{ error?.statusCode }}</div>
|
|
<Button @click="handleError">{{ t('btn.backToHome') }}</Button>
|
|
</div>
|
|
</NuxtLayout>
|
|
</template>
|