42 lines
869 B
JavaScript
Raw Normal View History

2025-10-15 14:07:39 +08:00
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
2025-11-04 14:24:06 +08:00
path: '/',
2025-10-15 14:07:39 +08:00
name: 'Home',
component: () => import('../views/Home.vue')
},
{
path: '/user',
name: 'User',
component: () => import('../views/User.vue')
2025-10-16 15:04:54 +08:00
},
{
2025-11-04 17:29:45 +08:00
path: '/equipManage/:data',
2025-10-16 15:04:54 +08:00
name: 'EquipManage',
component: () => import('../views/EquipmentManagement.vue')
2025-10-16 16:44:08 +08:00
},
{
path: '/materialManage',
name: 'MaterialManage',
component: () => import('../views/MaterialManagement.vue')
2025-10-16 17:31:43 +08:00
},
{
path: '/staffManage',
name: 'StaffManage',
component: () => import('../views/StaffManagement.vue')
2025-10-24 10:12:16 +08:00
},
{
path: '/equipDetail/:data',
name: 'EquipDetail',
component: () => import('../views/EquipmentDetails.vue')
},
2025-10-15 14:07:39 +08:00
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router