diff --git a/inventory-web/src/router/index.ts b/inventory-web/src/router/index.ts index a0a20c7..49e9202 100644 --- a/inventory-web/src/router/index.ts +++ b/inventory-web/src/router/index.ts @@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' import Layout from '@/layout/index.vue' import { useUserStore } from '@/stores/user' +import BomManage from '@/views/bom/BomManage.vue' const routes: Array = [ // 1. 登录页 @@ -130,8 +131,8 @@ const routes: Array = [ { path: 'manage', name: 'BomManage', - component: () => import('@/views/bom/BomManage.vue'), - meta: { title: '配方管理' } + component: BomManage, + meta: { title: 'BOM配方管理', icon: 'list' } } ] },