diff --git a/src/router/index.ts b/src/router/index.ts index 665ee18..18e5973 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -49,6 +49,11 @@ const router = createRouter({ name: 'editor', component: () => import('../views/EditorView.vue'), }, + { + path: '/:pathMatch(.*)*', + name: 'not-found', + component: () => import('../views/NotFound.vue'), + }, ], scrollBehavior(to, from, savedPosition) { if (savedPosition) { diff --git a/src/views/NotFound.vue b/src/views/NotFound.vue new file mode 100644 index 0000000..4dac06a --- /dev/null +++ b/src/views/NotFound.vue @@ -0,0 +1,27 @@ + + + + 404 + + 👻 + + + + Page not found + + Oops! The page you're looking for doesn't exist or has been moved. + + + + + Go home + + + + +
+ Oops! The page you're looking for doesn't exist or has been moved. +