Nuxt/test/fixtures/error/layouts/error.vue

18 lines
318 B
Vue
Raw Normal View History

<template>
<div>
<h1>Error</h1>
<p>Details: {{ this.$route.path === '/squared' ? error.response.data : error.message }}</p>
<nuxt-link to="/">
back
</nuxt-link>
</div>
</template>
<script>
export default {
// eslint-disable-next-line vue/require-prop-types
props: ['error']
}
</script>