fix from mounted to asyncData/fetch, fix #12

This commit is contained in:
lesion
2019-06-12 22:26:28 +02:00
parent 9003afd810
commit a9b73f373b
4 changed files with 147 additions and 108 deletions

View File

@@ -1,8 +1,8 @@
<template lang='pug'>
.container
#error
h1(v-if="error.statusCode === 404") Page not found
h1(v-else) An error occurred
h1(v-if="error.statusCode === 404") {{error.message}}
h1(v-else) An error occurred {{error}}
</template>
<script>