mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 05:11:11 +08:00
Show page not found for invalid routes
This commit is contained in:
@@ -20,6 +20,7 @@ import Backup from "./components/settings/Backup.vue";
|
||||
import About from "./components/settings/About.vue";
|
||||
import ManageStatusPage from "./pages/ManageStatusPage.vue";
|
||||
import AddStatusPage from "./pages/AddStatusPage.vue";
|
||||
import NotFound from "./pages/NotFound.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -128,6 +129,10 @@ const routes = [
|
||||
path: "/status/:slug",
|
||||
component: StatusPage,
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
component: NotFound,
|
||||
},
|
||||
];
|
||||
|
||||
export const router = createRouter({
|
||||
|
Reference in New Issue
Block a user