mirror of
https://github.com/Kisechan/Mainpage.git
synced 2025-07-10 15:17:18 +00:00
添加 404 页面及自动跳转功能,优化用户体验
This commit is contained in:
@ -19,6 +19,16 @@ const routes = [
|
||||
component: () => import("@/views/ToolsView.vue"),
|
||||
meta: { title: "工具" },
|
||||
},
|
||||
{
|
||||
path: "/404",
|
||||
name: "404",
|
||||
component: () => import("@/views/404.vue"),
|
||||
meta: { title: "寄了" },
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
redirect: "/404",
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
Reference in New Issue
Block a user