feat: 在 typed-router.d.ts 中添加 '$Path' 路由记录信息

This commit is contained in:
严浩
2024-11-26 12:39:37 +08:00
parent fea7e3d20e
commit 7e06011c05
3 changed files with 10 additions and 2 deletions

15
src/pages/[...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>