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
| <template>
| <div class="error-page">
| <a-result
| status="404"
| title="404"
| sub-title="抱歉,您访问的页面不存在"
| >
| <template #extra>
| <a-button type="primary" @click="goHome">返回首页</a-button>
| </template>
| </a-result>
| </div>
| </template>
|
| <script setup lang="ts">
| import { useRouter } from 'vue-router';
|
| const router = useRouter();
|
| function goHome() {
| router.push('/');
| }
| </script>
|
| <style scoped>
| .error-page {
| display: flex;
| align-items: center;
| justify-content: center;
| min-height: 400px;
| }
| </style>
|
|