Newer
Older
gasAlarmH5 / src / router / routes.ts
liyaguang on 8 Sep 2023 1 KB feat(*): 修改接口地址
const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: "/home",
    name: "Home",
    component: () => import('../views/administrator/home/index.vue'), // 首页
  },
  {
    path: "/equipment",
    name: "Equipment",
    component: () => import('../views/administrator/equipment/index.vue'), // 设备管理
  },
  {
    path: "/alarm",
    name: "Alarm",
    component: () => import('../views/administrator/alarm/index.vue'), // 报警管理
  },
  {
    path: "/detail",
    name: "Detail",
    component: () => import('../views/administrator/detail/index.vue'), // 设备详情
  },
  {
    path: "/mydevice",
    name: "MyDevice",
    component: () => import('../views/user/device/index.vue'), // 用户-我的设备
  },
  {
    path: "/logs",
    name: "Logs",
    component: () => import('../views/user/deviceLogs/index.vue'), // 用户-日志
  },
  {
    path: "/monitor",
    name: "Monitor",
    component: () => import('../views/user/monitor/index.vue'), // 用户-监测
  },
  {
    path: "/monitor-alarm",
    name: "MonitorAlarm",
    component: () => import('../views/user/monitorAlarm/index.vue'), // 用户-监测-报警
  },
  // {
  //   name: "notFound",
  //   path: "/:pathMatch(.*)*",
  //   component: () => import("../views/404.vue"),
  // },
];
export default routes;