|
|
@@ -46,15 +46,16 @@ module.exports = {
|
|
|
//开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
|
|
|
devServer: {
|
|
|
port: 1026,
|
|
|
+ // host: '192.168.8.108',
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
//本地服务接口地址
|
|
|
// target: 'http://192.168.8.106:1080',
|
|
|
- target: 'http://192.168.8.118:1080',
|
|
|
- // target: 'http://192.168.8.120:1080',
|
|
|
- // target: 'http://127.0.0.1:1080',
|
|
|
+ // target: 'http://192.168.8.118:1080',
|
|
|
+ // target: 'http://192.168.8.108:1080',
|
|
|
+ // target: 'http://localhost:1080',
|
|
|
// 打包地址
|
|
|
- // target: 'http://121.37.83.47:10004',//服务器ip
|
|
|
+ target: 'https://lt.echepei.com/api',//服务器ip
|
|
|
// target: 'http://192.168.161.11:10004',//服务器ip
|
|
|
// target: 'http://127.0.0.1:10004',
|
|
|
// target: 'http://trade.tubaosoft.com:10004',//服务器域名
|
|
|
@@ -62,6 +63,14 @@ module.exports = {
|
|
|
pathRewrite: {
|
|
|
'^/api': '/'
|
|
|
}
|
|
|
+ },
|
|
|
+ '/enterprise-gizwits': {
|
|
|
+ target: 'http://enterpriseapi.gizwits.com',
|
|
|
+ changeOrigin: true,
|
|
|
+ secure: false,
|
|
|
+ pathRewrite: {
|
|
|
+ '^/enterprise-gizwits': ''
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|