import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/', name: 'Home', component: () => import('../views/Home.vue') }, { path: '/user', name: 'User', component: () => import('../views/User.vue') }, { path: '/equipManage', name: 'EquipManage', component: () => import('../views/EquipmentManagement.vue') }, { path: '/materialManage', name: 'MaterialManage', component: () => import('../views/MaterialManagement.vue') }, { path: '/staffManage', name: 'StaffManage', component: () => import('../views/StaffManagement.vue') } ] const router = createRouter({ history: createWebHistory(), routes }) export default router