import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/', redirect: '/dashboard' }, { path: '/dashboard', name: 'Dashboard', component: () => import('@/views/Dashboard.vue'), meta: { title: 'WMS综合看板' } }, { path: '/warehouse', name: 'Warehouse', component: () => import('@/views/Warehouse.vue'), meta: { title: '仓库监控' } }, { path: '/production', name: 'Production', component: () => import('@/views/Production.vue'), meta: { title: '生产监控' } }, { path: '/inventory', name: 'Inventory', component: () => import('@/views/Inventory.vue'), meta: { title: '库存预警' } }, { path: '/api-example', name: 'ApiExample', component: () => import('@/examples/ApiExample.vue'), meta: { title: 'API调用示例' } } ] const router = createRouter({ history: createWebHistory(), routes }) export default router