Blame view

.umirc.ts 794 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: {
15
16
    '/service/': {
      target: 'http://localhost:8085/',
calmound authored
17
      changeOrigin: true,
sanmu authored
18
      // pathRewrite: { '^/api': '' },
calmound authored
19
20
21
22
23
    },
  },
  routes: [
    {
      path: '/',
sanmu authored
24
      redirect: '/order',
calmound authored
25
    },
sanmu authored
26
27
28
29
30
31
32
    {
      name: '登录',
      path: '/login',
      component: './Login',
      layout: false,
    },
calmound authored
33
    {
sanmu authored
34
35
36
      name: '订单管理',
      path: '/order',
      component: './Order',
calmound authored
37
    },
sanmu authored
38
39
40
41
42
43
    {
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
calmound authored
44
  ],
calmound authored
45
calmound authored
46
  npmClient: 'pnpm',
calmound authored
47
  tailwindcss: {},
calmound authored
48
});