.umirc.ts
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import { defineConfig } from '@umijs/max';
export default defineConfig({
esbuildMinifyIIFE: true,
antd: {
style: 'less',
},
access: {},
model: {},
initialState: {},
request: {},
layout: {
title: '订单管理系统',
},
proxy: {
'/api/': {
target: 'http://localhost:8085/',
// target: 'http://192.168.1.6:8085/',
// target: 'http://39.108.227.113:8085/',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/previewApi/': {
target: 'http://39.108.227.113:8092/',
changeOrigin: true,
pathRewrite: { '^/previewApi': '' },
},
},
routes: [
{
path: '/',
redirect: '/order',
},
{
name: '登录',
path: '/login',
component: './Login',
layout: false,
},
{
name: '订单管理',
path: '/order',
component: './Order',
icon: 'ProfileOutlined',
},
{
name: '订单报表',
path: '/orderReport',
component: './OrderReport',
icon: 'LineChartOutlined',
access: 'canReadAdminAndFinance',
},
{
name: '发票管理',
path: '/invoiceManage',
component: './Invoice',
icon: 'BookOutlined',
access: 'canReadAdminAndFinance',
},
{
name: '预存管理',
path: '/prepaidManage',
component: './Prepaid',
icon: 'AccountBookOutlined',
access: 'canReadAdminAndFinanceAndSales',
},
{
name: '课题组管理',
path: '/researchGroup',
component: './ResearchGroup',
icon: 'AccountBookOutlined',
access: 'canReadAdminAndSales',
},
{
name: '分期账单',
path: '/instalment',
component: './Instalment',
icon: 'BookOutlined',
access: 'canReadLinda',
},
{
name: '区域管理',
path: '/zoning',
component: './ZoNing',
icon: 'BookOutlined',
access: 'canReadAdmin',
},
{
name: '客户管理',
path: '/client',
component: './Client',
icon: 'BookOutlined',
access: 'canReadAdmin',
},
{
name: '打印',
path: '/print',
component: './OrderPrint',
layout: false,
},
],
npmClient: 'pnpm',
tailwindcss: {},
});