Files
utils/src/views/NotFoundView.vue
zguiy 8400dbfab9
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
工具完成
2025-06-28 22:38:49 +08:00

41 lines
1022 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="min-h-screen bg-main flex items-center justify-center">
<div class="text-center px-4">
<div class="text-8xl text-primary mb-4">404</div>
<h1 class="text-3xl font-bold text-primary mb-4">页面未找到</h1>
<p class="text-lg text-secondary mb-8">
抱歉您访问的页面不存在或已被移除
</p>
<div class="space-x-4">
<button
@click="goHome"
class="btn-primary"
>
<FontAwesomeIcon :icon="['fas', 'home']" class="mr-2" />
返回首页
</button>
<button
@click="goBack"
class="btn-secondary"
>
<FontAwesomeIcon :icon="['fas', 'arrow-left']" class="mr-2" />
返回上页
</button>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const goHome = () => {
router.push('/')
}
const goBack = () => {
history.back()
}
</script>