feat: 添加 404 页面组件,显示路径不存在的消息
This commit is contained in:
15
src/[...path].vue
Normal file
15
src/[...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