diff --git a/src/router/index.js b/src/router/index.js
index 65353da..e2dcdb8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -9,13 +9,25 @@ const routes = [
{
path: '',
name: 'Home',
- // route level code-splitting
- // this generates a separate chunk (about.[hash].js) for this route
- // which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'),
},
],
},
+ // Leave this as the last route.
+ {
+ path: '/:pathMatch(.*)*',
+ component: () => import('@/layouts/default/Default.vue'),
+ children: [
+ {
+ path: '',
+ name: 'not-found',
+ component: () =>
+ import(
+ /* webpackChunkName: "default" */ '@/views/FileNotFound.vue'
+ ),
+ },
+ ],
+ },
]
const router = createRouter({
diff --git a/src/views/FileNotFound.vue b/src/views/FileNotFound.vue
new file mode 100644
index 0000000..8a6a2f9
--- /dev/null
+++ b/src/views/FileNotFound.vue
@@ -0,0 +1,17 @@
+
+
+
+
+ mdi-web-remove
+ (404) File Not Found
+ Home
+
+
+
+
+
+
+
+