<template>
  <div class="not-found">
    <ElResult status="404" title="404" sub-title="抱歉，页面不存在。" />
    <ElButton type="primary" @click="goHome">返回首页</ElButton>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
function goHome() {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #f5f7fa;
}
</style>
