12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- module.exports = {
- devServer: {
- port: 80, // 端口ApplicationPath
- proxy: {
- '/api':{//调取功能接口
- //target:'http://1.193.162.246:18402/WorkFlowWebService60NodeJS/Query.asmx',
- target:'http://localhost/WorkFlowWebService60NodeJS/Query.asmx',
- ws:true,
- changeorigin:true,
- pathRewrite:{
- '^/api':'',
- }
- },
- '/pdff':{//调取pdf地址
- //target:'http://1.193.162.246:18402/WorkFlowWebService60NodeJS/',
- target:'http://localhost/WorkFlowWebService60NodeJS/',
- ws:true,
- changeorigin:true,
- pathRewrite:{
- '^/pdff':'',
- }
- },
- '/donglong':{//调取OA地址
- target:'http://192.168.1.102:8080/',
- ws:true,
- changeorigin:true,
- pathRewrite:{
- '^/donglong':'',
- }
- },
- '/oaurl':{//调取OA地址
- target:'http://oa.chinahonden.com/services/OfsTodoDataWebService',
- ws:true,
- changeorigin:true,
- pathRewrite:{
- '^/oaurl':'',
- }
- },
- '/ydspcore':{//调取OA地址
- target:'http://1.193.162.246:18402/ydspcore/api/values/',
- ws:true,
- changeorigin:true,
- pathRewrite:{
- '^/ydspcore':'',
- }
- },
- }
- }
- }
|