404.vue 742 Bytes
<script setup lang="ts">
import { HOME_PATH } from '@/config'

defineOptions({ name: 'NotFound' })
const router = useRouter()
</script>

<template>
  <div class="error-page">
    <div class="error-code">404</div>
    <div class="error-desc">抱歉,你访问的页面不存在或尚未迁移到新平台</div>
    <el-button type="primary" @click="router.push(HOME_PATH)">返回首页</el-button>
  </div>
</template>

<style scoped lang="scss">
.error-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.error-code {
  font-size: 92px;
  font-weight: 700;
  color: $primary-color;
  line-height: 1;
}

.error-desc {
  color: $text-color-secondary;
}
</style>