1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * @Author: your name
- * @Date: 2021-09-03 14:28:27
- <<<<<<< HEAD
- * @LastEditTime: 2022-01-14 10:07:19
- =======
- * @LastEditTime: 2022-03-04 18:32:02
- >>>>>>> master
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: /MedicalWisdomCheckSys/config/proxy.ts
- */
- /**
- * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
- * -------------------------------
- * 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
- */
- //118.31.245.65 线上
- //112.124.59.133 测试
- export default {
- dev: {
- '/api': {
- target: 'http://118.31.245.65:8083/',
- changeOrigin: true,
- pathRewrite: { '^/api': '' },
- },
- },
- mock: {
- '/api/': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- prod: {
- '/api/': {
- target: 'https://118.31.245.65:8083/',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- pre: {
- '/api/': {
- target: 'your pre url',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- };
|