vue.config.js 839 B

1234567891011121314151617181920212223
  1. module.exports = {
  2.     devServer: {
  3. //port: 8081,
  4.       proxy: {
  5.           '/api':{//调取功能接口
  6.               target:'http://172.18.50.170:8181/WorkflowWebService55/query.asmx',
  7.               ws:true,
  8.               changeorigin:true,
  9.               pathRewrite:{
  10.                   '^/api':'',
  11.               }
  12.           },
  13.  '/pdff':{//调取pdf地址
  14.               target:'http://172.18.50.170:8181/WorkflowWebService55/',
  15.               ws:true,
  16.               changeorigin:true,
  17.               pathRewrite:{
  18.                   '^/pdff':'',
  19.               }
  20.           },
  21.       }
  22.     }
  23. }