vue.config.js 475 B

12345678910111213141516171819
  1. module.exports = {
  2. publicPath: './',
  3. devServer: {
  4. // proxy: {
  5. // '/api': {
  6. // // 此处的写法,目的是为了 将 /api 替换成 https://www.baidu.com/
  7. // target: 'http://47.112.166.173:8088/',
  8. // // 允许跨域
  9. // changeOrigin: true,
  10. // ws:true,
  11. // pathRewrite: {
  12. // '^/api': ''
  13. // }
  14. // }
  15. // }
  16. proxy: "http://47.112.166.173:8088/"
  17. }
  18. }