85 lines
2.5 KiB
TypeScript
85 lines
2.5 KiB
TypeScript
import { defineConfig } from '@umijs/max';
|
|
|
|
export default defineConfig({
|
|
antd: {},
|
|
access: {},
|
|
model: {},
|
|
initialState: {},
|
|
request: {},
|
|
layout: {
|
|
title: '木羽清风仓储系统',
|
|
locale: false,
|
|
},
|
|
headScripts: [
|
|
'https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap',
|
|
],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8888',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
routes: [
|
|
{
|
|
path: '/login',
|
|
layout: false,
|
|
component: './Login',
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: '/dashboard',
|
|
},
|
|
{
|
|
name: '首页',
|
|
path: '/dashboard',
|
|
component: './Dashboard',
|
|
icon: 'DashboardOutlined',
|
|
},
|
|
{
|
|
name: '客户关系',
|
|
path: '/crm',
|
|
icon: 'NodeIndexOutlined',
|
|
routes: [
|
|
{
|
|
name: '供应商与客户',
|
|
path: '/crm/relations',
|
|
component: './CRM/Relations',
|
|
},
|
|
{
|
|
name: '关系全景图',
|
|
path: '/crm/graph',
|
|
component: './CRM/Graph',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '库存管理',
|
|
path: '/inventory',
|
|
icon: 'DatabaseOutlined',
|
|
routes: [
|
|
{ name: '产品库存', path: '/inventory/products', component: './Inventory/Products' },
|
|
{ name: '盘库存', path: '/inventory/pans', component: './Inventory/Pans' },
|
|
{ name: '匹库存', path: '/inventory/bolts', component: './Inventory/Bolts' },
|
|
{ name: '库存查询', path: '/inventory/stocks', component: './Inventory/Stocks' },
|
|
{ name: '库存统计', path: '/inventory/stats', component: './Inventory/Stats' },
|
|
{ name: '库存盘点', path: '/inventory/checks', component: './Inventory/Checks' },
|
|
{ name: '库存调整', path: '/inventory/adjusts', component: './Inventory/Adjusts' },
|
|
{ name: 'Excel导入', path: '/inventory/import', component: './Inventory/Import' },
|
|
],
|
|
},
|
|
{
|
|
name: '系统管理',
|
|
path: '/system',
|
|
icon: 'SettingOutlined',
|
|
routes: [
|
|
{ name: '用户管理', path: '/system/users', component: './System/Users' },
|
|
{ name: '角色管理', path: '/system/roles', component: './System/Roles' },
|
|
{ name: '菜单管理', path: '/system/menus', component: './System/Menus' },
|
|
{ name: '操作日志', path: '/system/logs', component: './System/Logs' },
|
|
{ name: '系统配置', path: '/system/configs', component: './System/Configs' },
|
|
],
|
|
},
|
|
],
|
|
npmClient: 'pnpm',
|
|
});
|