-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
132 lines (131 loc) · 3.1 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import { defineConfig } from "umi";
export default defineConfig({
routes: [
{
path: '/login',
component: '@/pages/login/index',
layout: false
},
{
path: '/',
redirect: '/home',
wrappers: ['@/wrappers/auth'],
},
{
path: '/home',
component: '@/pages/home/index',
wrappers: ['@/wrappers/auth'],
},
{
path: '/historyNotice',
component: '@/pages/home/components/historyNotice/index',
},
{
path: '/feedback',
component: '@/pages/home/components/feedback/index',
},
{
path: '/appdownload',
component: '@/pages/home/components/appDownload/index',
},
{
path: '/upload',
component: '@/pages/upload/index',
},
{
path: '/uploadVideo',
component: '@/pages/upload/components/uploadVideo/index',
},
{
path: '/collectionManagement',
component: '@/pages/upload/components/collectionManagement/index',
},
{
path: '/collectionManagement/:id',
component: '@/pages/upload/components/collectionManagement/$id.tsx',
},
{
path: '/videoManagement',
component: '@/pages/upload/components/videoManagement/index.tsx',
},
{
path: '/promation',
component: '@/pages/promation/index',
},
{
path: '/promation/:id',
component: '@/pages/promation/$id.tsx',
},
{
path: '/applyForPromotion/:id',
component: '@/pages/promation/components/$id.tsx',
},
{
path: '/my',
component: '@/pages/my/index',
},
{
path: '/historyIncome',
component: '@/pages/my/pages/historyIncome/index.tsx',
},
{
path: '/toolbox',
component: '@/pages/my/pages/toolbox/index.tsx',
},
{
path: '/cooperation',
component: '@/pages/my/pages/cooperation/index.tsx',
},
{
path: '/myWords',
component: '@/pages/my/pages/myWords/index.tsx',
},
{
path: '/userAgreement',
component: '@/pages/my/pages/userAgreement/index.tsx',
},
{
path: '/userInfo',
component: '@/pages/my/pages/userInfo/index.tsx',
},
{
path: '/setting',
component: '@/pages/my/pages/setting/index.tsx',
},
{
path: '/withdrawal',
component: '@/pages/my/pages/withdrawal/index.tsx',
},
{
path: '/teamBenefits',
component: '@/pages/my/pages/teamBenefits/index.tsx',
},
{
path: '/privacyPolicy',
component: '@/pages/my/pages/privacyPolicy/index',
},
{
path: '/userAgreement',
component: '@/pages/my/pages/userAgreement/index',
},
{ path: '/*', component: '@/pages/404', layout: false },
],
chainWebpack: (memo) => {
memo.devServer.set('headers', {
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Embedder-Policy': 'require-corp',
});
},
proxy: {
'/apiFile': {
target: 'https://qingfeng.qfydkj.cn/',
changeOrigin: true,
},
// '/newApi': {
// target: 'https://qingfeng.qfydkj.cn/',
// changeOrigin: true
// }
},
esbuildMinifyIIFE: true,
npmClient: 'pnpm',
});