mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 07:46:15 -04:00
feat(page): added 404 page
This commit is contained in:
parent
655019cf23
commit
3db4f91c27
3 changed files with 36 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import { layouts } from './layouts/index';
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import HomePage from './pages/Home.page.vue';
|
||||
import NotFound from './pages/404.page.vue';
|
||||
import { tools } from './tools';
|
||||
|
||||
const router = createRouter({
|
||||
|
@ -12,6 +13,7 @@ const router = createRouter({
|
|||
component: HomePage,
|
||||
},
|
||||
...tools.map(({ path, name, component, ...config }) => ({ path, name, component, meta: { isTool: true, layout: layouts.toolLayout, name, ...config } })),
|
||||
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
|
||||
],
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue