error.vue
713 Bytes
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
<template>
<div class="error-main">
<a-result
style="margin-top: -50px"
:status="this.error.statusCode.toString()"
:title="this.error.statusCode.toString()"
:sub-title="this.error.message"
>
<template #extra>
<a-button type="primary" @click="$router.push('/')">
Go to Main
</a-button>
</template>
</a-result>
</div>
</template>
<script>
export default {
props: {
error: {
type: Object,
default: () => ({}),
},
},
};
</script>
<style lang="scss" scoped>
.error-main {
background-color: white;
height: calc(100vh - 84px - 69px);
display: flex;
align-items: center;
justify-content: center;
}
</style>