reset the rebase code
Change-Id: I50bb95e75cd5679667fb6e4053e0d1e60e28f6a5
diff --git a/config/proxy.ts b/config/proxy.ts
index a812e74..bd21b27 100644
--- a/config/proxy.ts
+++ b/config/proxy.ts
@@ -26,6 +26,21 @@
changeOrigin: true,
}
},
+ start: {
+ // localhost:5004/api/** -> https://preview.pro.ant.design/api/**
+ '/api/': {
+ // 要代理的地址
+ target: 'http://team4.10813352.xyz:5004',
+ // 配置了这个可以从 http 代理到 https
+ // 依赖 origin 的功能可能需要这个,比如 cookie
+ changeOrigin: true,
+ pathRewrite: { '^/api': '' },
+ },
+ '/profile/avatar/': {
+ target: 'http://team4.10813352.xyz:5004',
+ changeOrigin: true,
+ }
+ },
/**
* @name 详细的代理配置
@@ -39,6 +54,8 @@
pathRewrite: { '^': '' },
},
},
+
+
pre: {
'/api/': {
target: 'your pre url',
diff --git a/config/routes.ts b/config/routes.ts
index b468a04..14cfb53 100644
--- a/config/routes.ts
+++ b/config/routes.ts
@@ -140,5 +140,24 @@
path: '/post-review',
component: './PostReview/index.tsx',
hideInMenu: true,
- }
+ },
+ {
+ name: '种子列表',
+ path: '/torrent-list',
+ component: './Torrent/torrentList.tsx',
+ hideInMenu: true,
+ },
+ {
+ name: '种子详情界面',
+ path: '/torrent-detail/:id',
+ component: './Torrent/torrentDetail.tsx',
+ hideInMenu: true,
+ },
+ {
+ name: '上传种子界面',
+ path: '/torrent-upload',
+ component: './Torrent/torrentUpload.tsx',
+ hideInMenu: true,
+ },
+
];