vue.config.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.               ws:true,
  8.               changeorigin:true,
  9.               pathRewrite:{
  10.                   '^/api':'',
  11.               }
  12.           },
  13.  '/pdff':{//调取pdf地址
  14.               target:'http://1.193.162.246:18402/WorkFlowWebService60NodeJS/',
  15.               ws:true,
  16.               changeorigin:true,
  17.               pathRewrite:{
  18.                   '^/pdff':'',
  19.               }
  20.           },
  21.   '/donglong':{//调取OA地址
  22.               target:'http://192.168.1.102:8080/',
  23. ws:true,
  24. changeorigin:true,
  25. pathRewrite:{
  26.                   '^/donglong':'',
  27. }
  28.           },
  29. '/oaurl':{//调取OA地址
  30.               target:'http://oa.chinahonden.com/services/OfsTodoDataWebService',
  31. ws:true,
  32. changeorigin:true,
  33. pathRewrite:{
  34.                   '^/oaurl':'',
  35. }
  36.           },
  37.       }
  38.     }
  39. }