// 导出一级路由及二级路由
export default // index,login,home,about都是一级路由
{
  path: "/index",
  name: "index",
  component: () => import("../views/HomeIndex.vue"),
  // index的儿子路由，index 一级路由，那么他的儿子就是二级路由
  children: [
    {
      path: "homepage",
      name: "homepage",
      component: () => import("../components/home/HomeIndex.vue"),
      meta: { title: "设备管理" },
    },
    {
      path: "userManagement",
      name: "userManagement",
      component: () => import("../components/user/userManagement.vue"),
      meta: { title: "用户管理" },
    },
    {
      path: "roleManagement",
      name: "roleManagement",
      component: () => import("../components/role/roleManagement.vue"),
      meta: { title: "角色管理" },
    },
    {
      path: "powerManagement",
      name: "powerManagement",
      component: () => import("../components/power/powerManagement.vue"),
      meta: { title: "权限管理" },
    },
    {
      path: "tenantManagement",
      name: "tenantManagement",
      component: () => import("../components/tenant/tenantManagement.vue"),
      meta: { title: "租户信息管理" },
    },
    {
      path: "RepairRecord",
      name: "RepairRecord",
      component: () => import("../components/personal/RepairRecord.vue"),
      meta: { title: "报修记录" },
    },
    {
      path: "FeedbackInformation",
      name: "FeedbackInformation",
      component: () => import("../components/personal/FeedbackInformation.vue"),
      meta: { title: "反馈信息" },
    },

    //
    //
    // 子页面
    {
      path: "deviceDetails",
      name: "deviceDetails",
      component: () => import("../components/home/deviceDetails.vue"),
      meta: { title: "设备详情" },
    },
    {
      path: "deviceCamera",
      name: "deviceCamera",
      component: () => import("../components/home/deviceCamera.vue"),
      meta: { title: "摄像头" },
    },

    {
      path: "ContactUs",
      name: "ContactUs",
      component: () => import("../components/personal/ContactUs.vue"),
      meta: { title: "联系我们" },
    },
    //
    //
    // 水质检测
    {
      path: "waterQuality",
      name: "waterQuality",
      component: () => import("../components/home/waterQuality.vue"),
      meta: { title: "水质检测" },
    },
    //
    //
    // 投食记录
    {
      path: "FeedingRecord",
      name: "FeedingRecord",
      component: () => import("../components/home/FeedingRecord.vue"),
      meta: { title: "投食记录" },
    },
    //
    //
    // 错误信息
    {
      path: "errorRecord",
      name: "errorRecord",
      component: () => import("../components/home/errorRecord.vue"),
      meta: { title: "投食记录" },
    },
    //
    //
    // 路径规划
    {
      path: "PathPlan",
      name: "PathPlan",
      component: () => import("../components/home/PathPlan.vue"),
      meta: { title: "路径规划模式" },
    },
    //
    //
    // 多点导航模式
    {
      path: "PointNavigation",
      name: "PointNavigation",
      component: () => import("../components/home/PointNavigation.vue"),
      meta: { title: "多点导航模式" },
    },
    //
    // 定点模式
    {
      path: "FixedPoint",
      name: "FixedPoint",
      component: () => import("../components/home/FixedPoint.vue"),
      meta: { title: "定点模式" },
    },
    //
    // 投食模式详情
    {
      path: "FeedingToushi",
      name: "FeedingToushi",
      component: () => import("../components/home/FeedingToushi.vue"),
      meta: { title: "投食模式" },
    },
    //
    // 历史路线
    {
      path: "deviceHistory",
      name: "deviceHistory",
      component: () => import("../components/home/deviceHistory.vue"),
      meta: { title: "历史路线" },
    },
  ],
};
