|
|
|
|
/**
|
|
|
|
|
* 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
|
|
|
|
|
* -------------------------------
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
const bsc = {
|
|
|
|
|
'/baseApi': {
|
|
|
|
|
target: 'http://192.168.10.91:8090/api/',
|
|
|
|
|
pathRewrite: { '^/baseApi': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://192.168.10.91:8090/api/',
|
|
|
|
|
pathRewrite: { '^/api': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/statics': {
|
|
|
|
|
target: 'http://192.168.10.92/statics/',
|
|
|
|
|
pathRewrite: { '^/statics': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/sso/oauth': {
|
|
|
|
|
target: 'http://192.168.10.91:8015/api/oauth/',
|
|
|
|
|
pathRewrite: { '^/sso/oauth': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const huadong = {
|
|
|
|
|
'/baseApi': {
|
|
|
|
|
target: 'http://192.168.10.91:8090/api/',
|
|
|
|
|
pathRewrite: { '^/baseApi': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
// '/api/oauth/': {
|
|
|
|
|
// target: 'http://192.168.10.91:8060/oauth/',
|
|
|
|
|
// pathRewrite: { '^/api/oauth/': '' },
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
|
// },
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://192.168.10.91:8090/api/',
|
|
|
|
|
pathRewrite: { '^/api': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/statics': {
|
|
|
|
|
target: 'http://192.168.10.92/statics/',
|
|
|
|
|
pathRewrite: { '^/statics': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/download': {
|
|
|
|
|
target: 'http://192.168.10.92/download/',
|
|
|
|
|
pathRewrite: { '^/download': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/sso/oauth': {
|
|
|
|
|
target: 'http://192.168.10.91:8090/api/oauth/',
|
|
|
|
|
pathRewrite: { '^/sso/oauth': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const daye460 = {
|
|
|
|
|
'/baseApi': {
|
|
|
|
|
target: 'http://172.15.199.55:8090/api/',
|
|
|
|
|
pathRewrite: { '^/baseApi': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/api/oauth/': {
|
|
|
|
|
target: 'http://172.15.89.246:8060/oauth/',
|
|
|
|
|
pathRewrite: { '^/api/oauth/': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
// '/api': {
|
|
|
|
|
// target: 'http://172.15.89.222:80/api/',
|
|
|
|
|
// pathRewrite: { '^/api': '' },
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
|
// },
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'https://craft.dayesteel.com.cn/api/',
|
|
|
|
|
pathRewrite: { '^/api': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/statics': {
|
|
|
|
|
target: 'http://172.15.199.56/statics/',
|
|
|
|
|
pathRewrite: { '^/statics': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/download': {
|
|
|
|
|
target: 'http://172.15.199.56/download/',
|
|
|
|
|
pathRewrite: { '^/download': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/sso/oauth': {
|
|
|
|
|
target: 'http://172.15.199.55:8090/api/oauth/',
|
|
|
|
|
pathRewrite: { '^/sso/oauth': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/CZapi': {
|
|
|
|
|
target: 'http://172.15.89.232:8081/api/',//材智接口
|
|
|
|
|
pathRewrite: { '^/CZapi': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/openapi': {
|
|
|
|
|
target: 'http://172.15.89.232:8081/openapi/',//材智接口
|
|
|
|
|
pathRewrite: { '^/openapi': '' },
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default daye460
|