Blame view

.umirc.ts 1.21 KB
calmound authored
1
2
3
import { defineConfig } from '@umijs/max';

export default defineConfig({
calmound authored
4
5
6
  antd: {
    style: 'less',
  },
calmound authored
7
8
9
10
11
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
sanmu authored
12
    title: '订单管理系统',
calmound authored
13
14
  },
  proxy: {
sanmu authored
15
    '/api/': {
zhongnanhuang authored
16
      target: 'http://localhost:8085/',
zhongnanhuang authored
17
      // target: 'http://192.168.1.6:8085/',
zhongnanhuang authored
18
      // target: 'http://39.108.227.113:8085/',
calmound authored
19
      changeOrigin: true,
sanmu authored
20
      pathRewrite: { '^/api': '' },
calmound authored
21
22
23
24
25
    },
  },
  routes: [
    {
      path: '/',
sanmu authored
26
      redirect: '/order',
calmound authored
27
    },
sanmu authored
28
29
30
31
32
33
34
    {
      name: '登录',
      path: '/login',
      component: './Login',
      layout: false,
    },
calmound authored
35
    {
sanmu authored
36
37
38
      name: '订单管理',
      path: '/order',
      component: './Order',
zhongnanhuang authored
39
      icon: 'ProfileOutlined',
calmound authored
40
    },
sanmu authored
41
    {
zhongnanhuang authored
42
43
44
45
      name: '订单报表',
      path: '/orderReport',
      component: './OrderReport',
      icon: 'LineChartOutlined',
zhongnanhuang authored
46
      access: 'canReadAdmin',
zhongnanhuang authored
47
    },
zhongnanhuang authored
48
49
50
51
52
53
54
    {
      name: '发票管理',
      path: '/invoiceManage',
      component: './Invoice',
      icon: 'BookOutlined',
      access: 'canReadAdmin',
    },
55
    {
sanmu authored
56
57
58
59
60
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
calmound authored
61
  ],
calmound authored
62
calmound authored
63
  npmClient: 'pnpm',
calmound authored
64
  tailwindcss: {},
calmound authored
65
});