Nuxt/test/fixtures/split-layouts-error/layouts/error.vue
2021-03-06 19:55:28 +00:00

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>