mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
19 lines
339 B
Vue
19 lines
339 B
Vue
<template>
|
|
<div>
|
|
<h1>Error</h1>
|
|
<p>Details: {{ $route.path === '/squared' ? error.response.data : error.message }}</p>
|
|
|
|
<nuxt-link to="/">
|
|
back
|
|
</nuxt-link>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
layout: 'error-layout',
|
|
// eslint-disable-next-line vue/require-prop-types
|
|
props: ['error']
|
|
}
|
|
</script>
|