mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-25 22:30:28 +01:00
🚧 Feat : implement 404 error page
This commit is contained in:
@@ -4,11 +4,13 @@ import { createApp } from 'vue'
|
||||
import App from './templates/layouts/Base.vue'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Default from './templates/modules/default/Routes'
|
||||
import Error from './templates/modules/default/Error.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
...Default,
|
||||
{ path: '/:pathMatch(.*)*', component: Error }
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user