auth-web/src/components/Error/403.vue

27 lines
913 B
Vue
Raw Normal View History

<script lang="ts" setup>
import { useRouter } from 'vue-router';
import noAccess from '@/assets/status/403.svg?component';
import { $t } from '@/plugins/i18n';
2024-09-26 09:38:02 +08:00
defineOptions({
name: '403',
2024-09-26 09:38:02 +08:00
});
const router = useRouter();
</script>
<template>
<div class="flex justify-center items-center h-[640px]">
<noAccess />
<div class="ml-12">
<p v-motion :enter="{ opacity: 1, y: 0, transition: { delay: 80 } }" :initial="{ opacity: 0, y: 100 }" class="font-medium text-4xl mb-4 dark:text-white">403</p>
<p v-motion :enter="{ opacity: 1, y: 0, transition: { delay: 120 } }" :initial="{ opacity: 0, y: 100 }" class="mb-4 text-gray-500">
2024-10-24 10:42:44 +08:00
{{ $t('sorryNoAccess') }}
</p>
<el-button v-motion :enter="{ opacity: 1, y: 0, transition: { delay: 160 } }" :initial="{ opacity: 0, y: 100 }" type="primary" @click="router.push('/')">
2024-10-24 10:42:44 +08:00
{{ $t('returnToHomepage') }}
</el-button>
</div>
</div>
2024-09-26 09:38:02 +08:00
</template>