import {createRouter, createWebHashHistory} from "vue-router";

// cookies

// 创建routes
const routes = [
    {
        // 重定向
        path: "/home",
        redirect: "/",
    },
    {
        //主看板 
        path: "/",
        name: "root",
        component: () => import("@/views/index.vue"),
        children: [],
    }
];

//History路由模型
const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes,
});

export default router;
