const Layout = () => import("@/layout/index.vue")
export const staticRoutes = [
    {
        path: "/notfound",
        name: "notfound",
        hidden: true,
        component: () => import("@/views/404.vue")
    },
    {
        path: "/redirect",
        component: Layout,
        hidden: true,
        children: [
            {
                path: "/redirect/:path(.*)",
                component: () => import("@/views/redirect/index.vue")
            }
        ]
    },
    {
        path: "/login",
        name: "login",
        hidden: true,
        component: () => import("@/views/login/index.vue")
    },
    {
        path: "/404",
        name: "404",
        hidden: true,
        component: () => import("@/views/404.vue")
    },
    {
        path: "/noPermission",
        name: "noPermission",
        hidden: true,
        component: () => import("@/views/error/noPermission.vue")
    },
    {
        path: "/yh",
        name: "yhlogin",
        hidden: true,
        component: () => import("@/otherLogin/bx.vue"),
    },
    {
        path: "/ssoyh",
        name: "ssoyh",
        hidden: true,
        component: () => import("@/otherLogin/ssoSgzl.vue"),
    },
    {
        path: "",
        component: Layout,
        redirect: "/index",
        alwaysShow: false,
        children: [
            {
                path: "/index",
                name: "Index",
                component: () => import("@/views/home/home.vue"),
                alwaysShow: false,
                meta: {
                    title: "首页",
                    icon: "ep-Cpu",
                    affix: false
                },
                children: []
            },
            {
                path: "/workflow/:page*",
                name: "workflow",
                component: () => import("@/micro/index.vue"),
                alwaysShow: false,
                hidden: true,
                meta: {
                    title: "微前端",
                    icon: "ep-Cpu",
                    affix: false,
                    micro: true  //底座必须加
                },
                children: []
            },
            {
                path: "/userInfo",
                name: "userInfo",
                component: () => import("@/views/system/userInfo.vue"),
                alwaysShow: false,
                hidden: true,
                meta: {
                    title: "个人信息",
                    icon: "ep-Cpu",
                    affix: false
                },
                children: []
            }
        ]
    }
]