add 404 page

This commit is contained in:
geoffrey45 2022-03-02 10:20:31 +03:00
parent 5450a190f3
commit 9d9eed72ef
2 changed files with 17 additions and 0 deletions

View File

@ -49,6 +49,11 @@ const routes = [
name: "SettingsView",
component: SettingsView,
},
{
path: "/:pathMatch(.*)",
// alias: "*",
component: () => import("../views/NotFound.vue"),
}
];
const router = createRouter({

12
src/views/NotFound.vue Normal file
View File

@ -0,0 +1,12 @@
<template>
<div class="fof">
404! Page Not Found!
</div>
</template>
<style lang="scss">
.fof {
padding: 1rem;
font-size: 2rem;
}
</style>