mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 03:35:17 +00:00
18 lines
318 B
Vue
18 lines
318 B
Vue
|
<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>
|