This commit is contained in:
xiaozhou
2025-08-28 18:41:49 +08:00
commit 3a65cae1aa
22 changed files with 3941 additions and 0 deletions

32
src/router/index.ts Normal file
View File

@ -0,0 +1,32 @@
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"),
},
],
});
export default router;