feat: 在 typed-router.d.ts 中添加 '$Path' 路由记录信息
This commit is contained in:
15
src/pages/[...path].vue
Normal file
15
src/pages/[...path].vue
Normal 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>
|
Reference in New Issue
Block a user