2022-03-11 08:22:16 +00:00
|
|
|
<template>
|
|
|
|
<div class="relative font-sans" n="green6">
|
|
|
|
<div class="container max-w-200 mx-auto py-10 px-4">
|
|
|
|
<h1>{{ error.message }}</h1>
|
|
|
|
There was an error 😱
|
|
|
|
|
2022-03-16 15:49:53 +00:00
|
|
|
<br>
|
2022-03-11 08:22:16 +00:00
|
|
|
<button @click="handleError">
|
|
|
|
Clear error
|
|
|
|
</button>
|
2022-03-16 15:49:53 +00:00
|
|
|
<br>
|
2022-03-11 08:22:16 +00:00
|
|
|
<NuxtLink to="/404">
|
|
|
|
Trigger another error
|
|
|
|
</NuxtLink>
|
2022-03-16 15:49:53 +00:00
|
|
|
<br>
|
2022-03-11 08:22:16 +00:00
|
|
|
<NuxtLink to="/">
|
|
|
|
Navigate home
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps({
|
|
|
|
error: Object
|
|
|
|
})
|
|
|
|
|
|
|
|
const handleError = () => clearError({ redirect: '/' })
|
|
|
|
</script>
|