123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- * @Author: your name
- * @Date: 2021-07-22 15:04:09
- * @LastEditTime: 2021-08-28 19:28:16
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: /TracerMethodology_PC/config/proxy.js
- */
- /**
- * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
- * -------------------------------
- * The agent cannot take effect in the production environment
- * so there is no configuration of the production environment
- * For details, please see
- * https://pro.ant.design/docs/deploy
- */
- export default {
- mock: {
- '/api/': {
- target: 'http://localhost',
- changeOrigin: true,
- pathRewrite: {
- '^/api': '',
- },
- },
- },
- dev: {
- '/api/': {
- target: 'http://112.124.59.133:8082', //开发本地:192.168.51.76 ,dev:112.124.59.133:8082 hr:192.168.51.80
- changeOrigin: true,
- pathRewrite: {
- '^/api': '',
- },
- },
- },
- test: {
- '/api/': {
- target: 'https://preview.pro.ant.design',
- changeOrigin: true,
- pathRewrite: {
- '^': '',
- },
- },
- },
- pre: {
- '/api/': {
- target: 'your pre url',
- changeOrigin: true,
- pathRewrite: {
- '^': '',
- },
- },
- },
- };
|