show back to homepage on whoops pages

This commit is contained in:
Pooya Parsa 2017-08-05 16:42:59 +04:30
parent e70d0ba7d0
commit 518545df29

View File

@ -7,7 +7,7 @@
<h1>{{ error.statusCode }} </h1> <h1>{{ error.statusCode }} </h1>
<h4> {{ $route.path }} </h4> <h4> {{ $route.path }} </h4>
<pre class="error-box"><code>{{ error.message }}</code></pre> <pre class="error-box"><code>{{ error.message }}</code></pre>
<p v-if="error.statusCode === 404"> <p v-if="error.statusCode === 404 || error.statusCode === 'Whoops!'">
<nuxt-link class="error-link" to="/">Back to the home page</nuxt-link> <nuxt-link class="error-link" to="/">Back to the home page</nuxt-link>
</p> </p>
</div> </div>