添加404界面,优化homeview代码可读性

This commit is contained in:
2024-09-12 20:29:45 +08:00
parent d41e43fcb8
commit 7b5dacf723
3 changed files with 44 additions and 2 deletions

View File

@@ -45,6 +45,11 @@ const router = createRouter({
component: () => import('../views/Console/Dashboard.vue')
}
],
},
{
path: '/:pathMatch(.*)*',
name: 'notFound',
component: () => import('../views/NotFound.vue')
}
]
})