vue.config.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module.exports = {
  2.     devServer: {
  3. port: 80, // 端口ApplicationPath
  4.       proxy: {
  5.           '/api':{//调取功能接口
  6.               //target:'http://1.193.162.246:18402/WorkFlowWebService60NodeJS/Query.asmx',
  7. target:'http://localhost/WorkFlowWebService60NodeJS/Query.asmx',
  8.               ws:true,
  9.               changeorigin:true,
  10.               pathRewrite:{
  11.                   '^/api':'',
  12.               }
  13.           },
  14.  '/pdff':{//调取pdf地址
  15.               //target:'http://1.193.162.246:18402/WorkFlowWebService60NodeJS/',
  16. target:'http://localhost/WorkFlowWebService60NodeJS/',
  17.               ws:true,
  18.               changeorigin:true,
  19.               pathRewrite:{
  20.                   '^/pdff':'',
  21.               }
  22.           },
  23.   '/donglong':{//调取OA地址
  24.               target:'http://192.168.1.102:8080/',
  25. ws:true,
  26. changeorigin:true,
  27. pathRewrite:{
  28.                   '^/donglong':'',
  29. }
  30.           },
  31. '/oaurl':{//调取OA地址
  32.               target:'http://oa.chinahonden.com/services/OfsTodoDataWebService',
  33. ws:true,
  34. changeorigin:true,
  35. pathRewrite:{
  36.                   '^/oaurl':'',
  37. }
  38.           },
  39. '/ydspcore':{//调取OA地址
  40.               target:'http://1.193.162.246:18402/ydspcore/api/values/',
  41. ws:true,
  42. changeorigin:true,
  43. pathRewrite:{
  44.                   '^/ydspcore':'',
  45. }
  46.           },
  47.       }
  48.     }
  49. }