| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- // 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')
- },
- ];
- // 创建路由实例
- const router = createRouter({
- history:createWebHashHistory(),
- // history: createWebHistory(import.meta.env.BASE_URL), // 使用 history 模式
- routes // 路由配置
- });
- export default router;
|