
export const sidebarRoutes = []

export const asyncRoutes = [
  // 404 page must be placed at the end !!!
  {
    path: "*",
    redirect: "/404",
    hidden: true
  }
];

export const constantRoutes = [
  {
    path: "/redirect",
    component: () => import("@/layout/index"),
    hidden: true,
    children: [
      {
        path: "/redirect/:path(.*)",
        component: () => import("@base/views/user/redirect/index"),
      }
    ]
  },
  {
    path: "/login",
    component: () => import("@/views/user/login/index"),
    hidden: true,
  },
  /* {
    path: '/auth-redirect',
    component: () => import('@base/views/login/auth-redirect'),
    hidden: true
  }, */
  {
    path: "/404",
    component: () => import("@base/views/user/error-page/404"),
    hidden: true
  },
  {
    path: "/401",
    component: () => import("@base/views/user/error-page/401"),
    hidden: true
  },
  {
    path: "/user/wf/iframe/index",
    component: () => import("@base/views/user/wf/iframe/index"),
    hidden: true,
  },

  {
    path: "/user/user/infoContent",
    component: () => import("@base/views/user/user/infoContent"),
    hidden: true,
  },
  {
    path: "/outLinkView",
    component: () => import("@base/views/user/outLink/view"),
    meta: {
      checkToken: false
    },
    hidden: true
  },
  {
    path: "/form_outLinkView",
    component: () => import("@base/views/user/outLink/form_view"),
    meta: {
      checkToken: false
    },
    hidden: true
  },
  {
    path: "/activiti_wf",
    component: () => import("@base/views/user/wf/wf_obj_config/activiti_wf"),
    meta: {
      checkToken: false
    },
    hidden: true
  },
  {
    path: "/",
    component: () => import("@/layout/index"),
    redirect: "/home",
    children: [
      {
        path: "home",
        component: () => import("@base/views/user/home/index"),
        name: "home",
        meta: {
          title: "首页",
          icon: "dashboard",
          affix: true
        }
      },
      {
        path: "basic/wf/wf_manage/list",
        component: () => import("@base/views/user/wf/wf_manage/list"),
        name: "wf_manage:list",
        meta: {
          title: "流程待办",
          icon: "dashboard"
        }
      },
      {
        path: "user/notify_message/list",
        component: () => import("@base/views/user/notify_message/list"),
        name: "notify_message:list",
        meta: {
          title: "消息通知",
          icon: "dashboard"
        }
      },
      {
        path: 'portal/qiankun-test/:path', // 通配符匹配子应用所有路由
        name: 'qiankun-test',
      }
    ]
  }
];

