import * as  VueRouter from "vue-router"

/**
 *
 * @type {Readonly<VueRouter.RouteRecordRaw[]>}
 */
const routes = [
    {
        path: '/',
        component: ()=>import("src/views/scaffold/index.vue"),
        meta: {
            title: "首页",
            keepAlive: true,
            groups: "/"
        },
        children: [
            {
                path: "/home",
                component: ()=>import("src/views/tabs/home/Home.vue"),
                meta: {
                    title: "首页",
                    groups: "/",
                    keepAlive: true,
                }
            },
            {
                path: "/environment",
                component:()=>import("src/views/tabs/environment/index.vue"),
                meta:{
                    title: "环境变量",
                    groups: "/",
                }
            },
            {
                path: "/test",
                component: ()=>import("src/views/tabs/home/Test.vue"),
                meta: {
                    title: "测试",
                    groups: "/"
                }
            }
        ]
    },
]

const Router = VueRouter.createRouter({
    history: VueRouter.createWebHashHistory(),
    routes
})
export default Router
