2026-04-03 15:43:44 +00:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
|
import type { RouteRecordRaw } from "vue-router";
|
2026-04-03 18:28:41 +00:00
|
|
|
import HomeBase from "@/rmo/view/Home.vue";
|
|
|
|
|
import HomeDistrict from "@/rmo/view/district/Home.vue";
|
|
|
|
|
import NuisanceBase from "@/rmo/view/Nuisance.vue";
|
|
|
|
|
//import * as NuisanceDistrict from "@/rmo/view/district/Nuisance.vue";
|
|
|
|
|
import Status from "@/rmo/view/Status.vue";
|
2026-04-03 16:37:09 +00:00
|
|
|
import Water from "@/rmo/view/Water.vue";
|
2026-04-03 15:43:44 +00:00
|
|
|
const routes: RouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: "/",
|
2026-04-03 18:28:41 +00:00
|
|
|
name: "HomeBase",
|
|
|
|
|
component: HomeBase,
|
2026-04-03 15:43:44 +00:00
|
|
|
},
|
2026-04-03 16:08:57 +00:00
|
|
|
{
|
|
|
|
|
path: "/nuisance",
|
2026-04-03 18:28:41 +00:00
|
|
|
name: "NuisanceBase",
|
|
|
|
|
component: NuisanceBase,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/district/:slug",
|
|
|
|
|
name: "HomeDistrict",
|
|
|
|
|
component: HomeDistrict,
|
|
|
|
|
props: true,
|
|
|
|
|
},
|
|
|
|
|
/*{
|
|
|
|
|
path: "/district/{slug}/nuisance",
|
|
|
|
|
name: "NuisanceDistrict",
|
|
|
|
|
component: NuisanceDistrict,
|
|
|
|
|
props: true,
|
|
|
|
|
},*/
|
|
|
|
|
{
|
|
|
|
|
path: "/status",
|
|
|
|
|
name: "Status",
|
|
|
|
|
component: Status,
|
2026-04-03 16:08:57 +00:00
|
|
|
},
|
2026-04-03 16:37:09 +00:00
|
|
|
{
|
|
|
|
|
path: "/water",
|
|
|
|
|
name: "Water",
|
|
|
|
|
component: Water,
|
|
|
|
|
},
|
2026-04-03 15:43:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const router = createRouter({
|
|
|
|
|
history: createWebHistory("/"),
|
|
|
|
|
routes,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default router;
|