增加用户中心、用户注册登录
This commit is contained in:
@@ -9,13 +9,15 @@
|
||||
*
|
||||
* @doc https://umijs.org/docs/guides/proxy
|
||||
*/
|
||||
const basePath = 'http://59.80.22.43:33333'
|
||||
// const basePath = 'http://localhost:30000'
|
||||
export default {
|
||||
// 如果需要自定义本地开发服务器 请取消注释按需调整
|
||||
dev: {
|
||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
'/story/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:30001',
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
@@ -23,12 +25,20 @@ export default {
|
||||
},
|
||||
'/file/': {
|
||||
// 要代理的地址
|
||||
target: 'http://localhost:30002',
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/file': '/file' },
|
||||
},
|
||||
'/user-api/': {
|
||||
// 要代理的地址
|
||||
target: basePath,
|
||||
// 配置了这个可以从 http 代理到 https
|
||||
// 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/user-api': '/user' },
|
||||
},
|
||||
'/api/': {
|
||||
target: 'https://proapi.azurewebsites.net',
|
||||
changeOrigin: true,
|
||||
|
||||
Reference in New Issue
Block a user