import { createRouter, createWebHistory } from 'vue-router'
import LayoutPage from "@/views/layoutPage.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: LayoutPage,
      children: [
        {path: '/gameLogin', component: () => import('@/views/layout/gameLogin.vue')},
        {path: '/toolBox/byte', component: () => import('@/views/toolBox/bytePage.vue')},
        {path: '/toolBox/common', component: () => import('@/views/toolBox/commonPage.vue')},
        {path: '/toolBox/test', component: () => import('@/views/toolBox/testPage.vue')},
        {path: '/autoCounterPart', component: () => import('@/views/autoCounterPart/autoCounterPartPage.vue')},
        {path: '/maze', component: () => import('@/views/maze/mazePage.vue')},
      ]
    },

  ]
})

export default router
