-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
52 lines (49 loc) · 2 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
import { defineConfig } from "umi";
export default defineConfig({
publicPath: '/public/babylove/',
hash: true,
routes: [
// { path: "/", component: "index" },
{ path: "/view", component: "index" },
{ path: "/view/", component: "index" },
// { path: "/", component: "custom/goods-list" },
{ path: "/view/goods/list", component: "custom/goods-list" },
{ path: "/view/goods/details", component: "custom/goods-details" },
{ path: "/view/shopping-cart", component: "custom/shopping-cart" },
{ path: "/view/order/list", component: "custom/order-list" },
{ path: "/view/order/details", component: "custom/order-details" },
{ path: "/view/raffle", component: "custom/raffle" },
{ path: "/view/login", component: "login" },
{ path: "/view/admin/login", component: "login" },
{ path: "/view/admin", component: "admin" },
{ path: "/view/admin/", component: "admin" },
{ path: "/view/admin/goods/list", component: "admin/goods-list" },
{ path: "/view/admin/goods/details", component: "admin/goods-details" },
{ path: "/view/admin/shopping-cart", component: "admin/shopping-cart" },
{ path: "/view/admin/goods/edit", component: "admin/goods-edit" },
{ path: "/view/admin/order/list", component: "admin/order-list" },
{ path: "/view/admin/order/details", component: "admin/order-details" },
{ path: "/view/admin/order/edit", component: "admin/order-edit" },
{ path: "/view/admin/catalog/list", component: "admin/catalogs" },
{ path: "/view/admin/user/list", component: "admin/user-list" },
{ path: "/view/admin/user/edit", component: "admin/user-edit" },
],
proxy: {
'/admin': {
'target': 'http://localhost:7001/',
'changeOrigin': true,
},
'/custom': {
'target': 'http://localhost:7001/',
'changeOrigin': true,
},
'/user': {
'target': 'http://localhost:7001/',
'changeOrigin': true,
},
'/public': {
'target': 'http://localhost:7001/',
'changeOrigin': true,
},
},
});