<template>
    <div class="not-found">
        <h1>404 - 页面无法找到</h1>
        <p>您访问的页面不存在。</p>
        <el-button @click="goBack">返回</el-button>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const goBack = () => {
    router.go(-1)
}
</script>

<style scoped>
.not-found {
    text-align: center;
    margin-top: 50px;
}

h1 {
    color: #ff4d4f;
}

p {
    font-size: 18px;
    color: #666;
}
</style>