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

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'dorm',
      component: () => import('@/views/DormView.vue'),
      meta: {
        title: '智慧宿舍'
      }
    },
    {
      path: '/classroom',
      name: 'classroom',
      component: () => import('@/views/ClassroomView.vue'),
      meta: {
        title: '智慧教室'
      }
    },
    {
      path: '/bookroom',
      name: 'bookroom',
      component: () => import('@/views/BookroomView.vue'),
      meta: {
        title: '智慧书房'
      }
    }
  ]
})

export default router
