Browse Source

修复api 登录问题 (#10453)

pull/10476/head
Tony Han 3 years ago
committed by GitHub
parent
commit
0b4b0b14ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      config/proxy.ts

13
config/proxy.ts

@ -10,7 +10,18 @@
* @doc https://umijs.org/docs/guides/proxy * @doc https://umijs.org/docs/guides/proxy
*/ */
export default { export default {
dev: {}, // 如果需要自定义本地开发服务器 请取消注释按需调整
// dev: {
// // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
// '/api/': {
// // 要代理的地址
// target: 'https://preview.pro.ant.design',
// // 配置了这个可以从 http 代理到 https
// // 依赖 origin 的功能可能需要这个,比如 cookie
// changeOrigin: true,
// },
// },
/** /**
* @name * @name
* @doc https://github.com/chimurai/http-proxy-middleware * @doc https://github.com/chimurai/http-proxy-middleware

Loading…
Cancel
Save