// 路由配置示例（router/index.ts）
// import PoleMonitor from "../views/PoleMonitor.vue";
// import DeviceStatus from "../views/DeviceStatus.vue";

export const dashboardRoutes = {
  path: "/dashboard",
  fullPath: "/dashboard",
  redirect: "/dashboard/dataOverview",
  component: () => import("@/layouts/MainLayout.vue"),
  meta: { requiresAuth: true , isDashboard: true,  keepAlive: false,},
  children: [
    {
      path: "dataOverview",
      fullPath: "/dashboard/dataOverview",
      name: "DataOverview",
      component: () => import("@/views/dashboard/DataOverview.vue"),
      meta: { title: "数据总览" },
    },
    {
      path: "monitor",
      name: "AppearanceMonitor",
      fullPath: "/dashboard/monitor",
      component: () => import("@/views/dashboard/AppearanceMonitor.vue"),
      meta: { title: "外观监测" },
    },
    {
      path: "pole",
      name: "PoleMonitor",
      fullPath: "/dashboard/pole",
      component: () => import("@/views/dashboard/PoleMonitor.vue"),
      meta: { title: "撑杆监测" },
    },

    {
      path: "device",
      name: "DeviceStatus",
      fullPath: "/dashboard/device",
      component: () => import("@/views/dashboard/DeviceStatus.vue"),
      meta: { title: "设备状态" },
    },
    // { path: "pole", name: "PoleMonitor", component: PoleMonitor },
    // { path: "device", name: "DeviceStatus", component: DeviceStatus },
  ],
};
