Feature: 添加路由模式 & 404页面

This commit is contained in:
2025-08-13 16:14:17 +08:00
parent c5cd4e2021
commit 0870a1f4fa
3 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,5 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
<NuxtPage />
</div>
</template>

17
app/pages/[...all].vue Normal file
View File

@ -0,0 +1,17 @@
<template>
<main p="x4 y10" text="center teal-700 dark:gray-200">
<div text4xl>
<div i-ep-warning inline-block />
</div>
<div>Not found</div>
<div>
<button text-sm btn m="3 t8" @click="router.back()">
Back
</button>
</div>
</main>
</template>
<script setup lang="ts">
const router = useRouter()
</script>

5
app/pages/index.vue Normal file
View File

@ -0,0 +1,5 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>