chore
This commit is contained in:
20
src/pages/not-found-page.vue
Normal file
20
src/pages/not-found-page.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { NResult, NButton } from 'naive-ui';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const goHome = () => {
|
||||
router.push('/');
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NResult status="404" title="404 页面不存在" style="margin-top: 50px">
|
||||
<template #footer>
|
||||
<NButton @click="goHome">返回</NButton>
|
||||
</template>
|
||||
</NResult>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
Reference in New Issue
Block a user