import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'school',
      component: () => import('@/views/school.vue'),
      meta:{showRouter:true}
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('@/views/user.vue'),
      meta:{showRouter:true}
    },
    {
      path: '/energy',
      name: 'energy',
      component: () => import('@/views/energy.vue'),
      meta:{showRouter:true}
    },
    {
      path: '/more',
      name: 'more',
      component: () => import('@/views/more.vue'),
      meta:{showRouter:false}
    },
    {
      path: '/teacher',
      name: 'teacher',
      component: () => import('@/views/teacher.vue'),
      meta:{showRouter:false}
    },
    {
      path: '/student',
      name: 'student',
      component: () => import('@/views/student.vue'),
      meta:{showRouter:false}
    }
  ]
})

export default router
