Blame view

.umirc.ts 911 Bytes
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
42
43
44
45
46
    {
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
calmound authored
47
  ],
calmound authored
48
calmound authored
49
  npmClient: 'pnpm',
calmound authored
50
  tailwindcss: {},
calmound authored
51
});