-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
75 lines (71 loc) · 1.42 KB
/
.umirc.ts
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
import { defineConfig } from '@umijs/max';
const monaco = require('monaco-editor-webpack-plugin')
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: {
title: '@umijs/max',
},
icons: { autoInstall: {} },
chainWebpack(memo, args) {
memo.plugin('monaco').use(monaco)
return memo;
},
proxy: {
'/api/form': {
'target': 'http://192.168.44.70:5001',
'changeOrigin': true,
// 'pathRewrite': { '^/api': '' },
},
'/openai': {
'target': 'http://18.191.186.114',
'changeOrigin': true,
'pathRewrite': { '^/openai': '' },
}
},
routes: [
{
path: '/',
redirect: '/page'
},
{
name: '首页',
path: '/page',
routes:[
{
name: '页面渲染 ',
path: '/page/:id',
component: './Page',
},
]
},
// {
// name: '权限演示',
// path: '/access',
// component: './Access',
// },
// {
// name: ' CRUD 示例',
// path: '/table',
// component: './Table',
// },
{
name: '页面设计-',
path: '/setting',
layout: false,
routes: [
{
name: '页面设计',
path: '/setting/page/:id',
component: './Setting/Page',
layout: false
},
]
},
],
npmClient: 'pnpm',
esbuildMinifyIIFE: true
});