generated from deepin-community/sig-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
66 lines (57 loc) · 1.44 KB
/
error.vue
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
<v-app>
<NavBar />
<v-main>
<v-container class="main-content my-6">
<div class="d-flex flex-column align-center">
<v-empty-state icon="$error">
<template v-slot:media>
<v-icon color="surface-variant"></v-icon>
</template>
<template v-slot:headline>
<div class="text-h4">
{{ error.statusCode }}
</div>
</template>
<template v-slot:title>
<div class="text-h6">
{{ error.statusMessage }}
</div>
</template>
<template v-slot:text>
<div class="text-medium-emphasis text-caption" v-if="error.data">
{{ error.data }}
</div>
</template>
<template v-slot:actions>
<v-btn class="mt-8" variant="outlined" to="/">Back to Home</v-btn>
</template>
</v-empty-state>
</div>
</v-container>
</v-main>
<BackToTop />
<FooterBar />
</v-app>
</template>
<style>
html {
overflow-y: auto !important;
}
.main-content {
max-width: 900px;
}
a:not([class*="v"])::before {
font-family: "Material Design Icons";
content: "\F0339 ";
}
</style>
<script setup lang="ts">
useSeoMeta({
title: "错误页",
});
import type { NuxtError } from "#app";
const props = defineProps({
error: Object as () => NuxtError,
});
</script>