Blame view

src/views/error/404.vue 742 Bytes
532def1c   王彪总   新版本
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <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>