// src/router/index.ts import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' const routes: RouteRecordRaw[] = [ { path: '/', name: 'Index', meta:{title:'首页'}, component: () => import('@/views/index.vue') }, { path: '/login', name: 'Login', meta:{title:'登录'}, component: () => import('@/views/login/login.vue') }, { path: '/picking', name: 'PickingList', meta:{title:'拣货列表'}, component: () => import('@/views/outbound/picking/list/index.vue') }, { path: '/picking-task', name: 'PickingTask', meta:{title:'拣货任务'}, component: () => import('@/views/outbound/picking/task/index.vue') }, { path: '/picking-aisle', name: 'PickingAisle', meta:{title:'巷道拣货任务'}, component: () => import('@/views/outbound/pickingAisle/site/index.vue') }, { path: '/blind-receiving', name: 'BlindReceiving', meta:{title:'盲扫列表'}, component: () => import('@/views/inbound/blindCollection/mode/index.vue') }, { path: '/blind-task', name: 'BlindTask', meta:{title:'盲扫任务'}, component: () => import('@/views/inbound/blindCollection/task/index.vue') }, { path: '/check-move-stock', name: 'CheckMoveStock', meta:{title:'复核还库'}, component: () => import('@/views/outbound/check/moveStock/index.vue') }, { path: '/piece-dashboard', name: 'PieceDashboard', meta:{title:'计件面板'}, component: () => import('@/views/piece/dashboard/index.vue') }, { path: '/take-delivery', name: 'TakeDelivery', meta:{title:'宝时丰收'}, component: () => import('@/views/inbound/TakeDelivery/task/index.vue') }, { path: '/hik-putaway-allocation', name: 'HikPutawayAllocation', meta:{title:'海康上架-调度'}, component: () => import('@/views/haikang/putaway/dispatch/index.vue') }, { path: '/hik-putaway', name: 'HikPutaway', meta:{title:'海康上架'}, component: () => import('@/views/haikang/putaway/putaway/index.vue') }, { path: '/hik-box-return', name: 'HikBoxReturn', meta:{title:'海康-入库'}, component: () => import('@/views/haikang/boxReturn/boxReturn/index.vue') }, { path: '/check-activity', name: 'CheckActivity', meta:{title:'复核-活动单'}, component: () => import('@/views/outbound/check/activity/index.vue') }, { path: '/check-large', name: 'CheckLarge', meta:{title:'复核-大件单'}, component: () => import('@/views/outbound/check/large/index.vue') }, { path: '/move-list', name: 'MoveList', meta:{title:'移库列表'}, component: () => import('@/views/transfer/move/list/index.vue') }, { path: '/move-down', name: 'MoveDown', meta:{title:'移库下架'}, component: () => import('@/views/transfer/move/down/index.vue') }, { path: '/move-putaway', name: 'MovePutaway', meta:{title:'移库上架'}, component: () => import('@/views/transfer/move/putaway/index.vue') }, { path: '/returned-register', name: 'ReturnedRegister', meta:{title:'退货登记'}, component: () => import('@/views/returned/register/index.vue') }, { path: '/processing', name: 'Processing', meta:{title:'加工登记'}, component: () => import('@/views/processing/register/index.vue') }, ]; // 创建路由实例 const router = createRouter({ history:createWebHashHistory(), // history: createWebHistory(import.meta.env.BASE_URL), // 使用 history 模式 routes // 路由配置 }); export default router;