mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-10 04:57:45 +00:00
add 404 page
This commit is contained in:
parent
5450a190f3
commit
9d9eed72ef
@ -49,6 +49,11 @@ const routes = [
|
|||||||
name: "SettingsView",
|
name: "SettingsView",
|
||||||
component: SettingsView,
|
component: SettingsView,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/:pathMatch(.*)",
|
||||||
|
// alias: "*",
|
||||||
|
component: () => import("../views/NotFound.vue"),
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
12
src/views/NotFound.vue
Normal file
12
src/views/NotFound.vue
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user