feat: 添加 404 页面组件,显示路径不存在的消息
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 1m21s
/ depcheck (push) Successful in 1m46s
/ playwright (push) Successful in 3m13s

This commit is contained in:
严浩
2024-11-26 11:03:41 +08:00
parent 8d765091d8
commit fea7e3d20e

15
src/[...path].vue Normal file
View File

@ -0,0 +1,15 @@
<template>
<main class="flex flex-col items-center justify-center h-full">
<h1>Not Found</h1>
<p>{{ path }} does not exist.</p>
</main>
</template>
<script lang="ts" setup>
defineProps<{ path: string }>();
</script>
<route>
{
"props": true
}
</route>