-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.vue
30 lines (28 loc) · 962 Bytes
/
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
<template>
<div class="container d-flex flex-column" style="min-height: 100vh;">
<AppHeader />
<div v class="d-flex flex-column justify-content-center flex-grow-1" >
<div class="text-center mb-2">
<h1 v-if="error.statusCode === 404">Halaman tidak ditemukan</h1>
<h1 v-else>Terjadi Kesalahan {{ error.statusCode }}</h1>
</div>
<div class="text-center">
<nuxt-link to="/" class="font-weight-normal">Kembali ke beranda</nuxt-link>
</div>
</div>
<AppFooter />
</div>
</template>
<script setup>
const props = defineProps({
error: {
type: Object,
default() {
return { }
}
}
})
useHead({
title: props.error.statusCode === 404 ? 'Halaman tidak ditemukan — Macaksara' : 'Terjadi Kesalahan ' + props.error.statusCode + ' - Macaksara',
});
</script>