2025-08-28 18:41:49 +08:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
redirect: "/home",
|
|
|
|
component: () => import("@/views/layout.vue"),
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "/home",
|
|
|
|
component: () => import("@/views/home.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/alarm",
|
|
|
|
component: () => import("@/views/alarm.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/management",
|
|
|
|
component: () => import("@/views/management.vue"),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/demo",
|
|
|
|
component: () => import("@/views/demo.vue"),
|
|
|
|
},
|
2025-08-28 21:04:22 +08:00
|
|
|
{
|
|
|
|
path: "/menjinliebiao",
|
|
|
|
component: () => import("@/views/menjinliebiao.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "mjlbopen",
|
|
|
|
path: "/mjlbopen/:name",
|
|
|
|
component: () => import("@/views/mjlbopen.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "jmpdx",
|
|
|
|
path: "/jmpdx",
|
|
|
|
component: () => import("@/views/jmpdx.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/ktlb",
|
|
|
|
component: () => import("@/views/ktlb.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ktxx",
|
|
|
|
path: "/ktxx/:title",
|
|
|
|
component: () => import("@/views/ktxx.vue"),
|
|
|
|
},
|
2025-08-28 18:41:49 +08:00
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
export default router;
|