feat: add 404 page

This commit is contained in:
engigu
2024-01-03 20:18:25 +08:00
parent a93cf7c304
commit 2d82f59848
2 changed files with 26 additions and 0 deletions
+6
View File
@@ -23,6 +23,7 @@ const router = createRouter({
},
{
path: '/sendlogs',
alias: '/',
name: 'sendlogs',
component: () => import('../views/tabsTools/sendLogs/sendLogs.vue')
},
@@ -31,6 +32,11 @@ const router = createRouter({
name: 'settings',
component: () => import('../views/tabsTools/settings/settings.vue')
},
{
path: '/:catchAll(.*)',
name: '404',
component: () => import('../views/404.vue')
},
]
})
+20
View File
@@ -0,0 +1,20 @@
<template>
<div class="main-center-body">
<div class="container">
<el-empty description="页面划走了~" />
</div>
</div>
</template>
<style scoped>
.container {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
max-width: 800px;
width: 100%;
margin-top: -10vh;
}
</style>