.
This commit is contained in:
18
layouts/error.vue
Normal file
18
layouts/error.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template lang='pug'>
|
||||
.container
|
||||
#error
|
||||
h1(v-if="error.statusCode === 404") Page not found
|
||||
h1(v-else) An error occurred
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['error'],
|
||||
}
|
||||
</script>
|
||||
<style lang="less">
|
||||
#error {
|
||||
margin-top: 20px;
|
||||
color: orange;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user