107 lines
2.3 KiB
TypeScript
107 lines
2.3 KiB
TypeScript
import { defineConfig } from '@umijs/max';
|
|
|
|
export default defineConfig({
|
|
antd: {},
|
|
access: {},
|
|
model: {},
|
|
initialState: {},
|
|
request: {},
|
|
layout: {
|
|
title: 'muyuqingfeng仓储管理系统',
|
|
locale: false,
|
|
},
|
|
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: '/inventory',
|
|
icon: 'DatabaseOutlined',
|
|
routes: [
|
|
{
|
|
name: '产品档案',
|
|
path: '/inventory/products',
|
|
component: './Inventory/Products',
|
|
},
|
|
{
|
|
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',
|
|
});
|