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

// cookies

// 创建routes
const routes = [
    {
        // 重定向
        path: "/home",
        redirect: "/",
    },
    {
        //前台首页
        path: "/",
        name: "root",
        component: () => import("@/views/index.vue"),
        children: [],
    },
    {
        // 测试任务看板
        path: "/TestTaskDashboard",
        name: "TestTaskDashboard",
        component: () => import("@/views/TestTaskDashboard.vue"),
    },
    {
        // 仓库任务大屏
        path: "/WarehouseDashboard",
        name: "WarehouseDashboard",
        component: () => import("@/views/WarehouseDashboard.vue"),
    }
];

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

export default router;
