add color and routing

This commit is contained in:
2025-06-01 11:43:00 +02:00
parent 03e4a5790a
commit 87865871df
7 changed files with 93 additions and 22 deletions
+18
View File
@@ -0,0 +1,18 @@
<script setup lang="ts">
import type { NuxtError } from '#app'
const { error } = defineProps({
error: Object as () => NuxtError
})
// const handleError = () => clearError({ redirect: '/' })
</script>
<template>
<div>
<h2>{{ error?.statusCode }}</h2>
<div>{{ error?.statusMessage }}</div>
<div>{{ error?.message }}</div>
<!-- <button @click="handleError">Clear errors</button> -->
</div>
</template>