vue.config.js 1002 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * @Description: file content
  3. * @Version: 2.0
  4. * @Author: ljl
  5. * @Date: 2022-06-24 16:42:34
  6. * @LastEditors: ljl
  7. * @LastEditTime: 2022-07-08 11:37:54
  8. * @FilePath: \sui-shen-ban_alipay\vue.config.js
  9. */
  10. const { defineConfig } = require('@vue/cli-service')
  11. module.exports = defineConfig({
  12. publicPath: './',
  13. transpileDependencies: true,
  14. // devServer: {
  15. // // port:8080,
  16. // // open: true,
  17. // // overlay: {
  18. // // warnings: false,
  19. // // errors: true
  20. // // },
  21. // proxy: {
  22. // '/api': {// 匹配所有以 '/api1'开头的请求路径
  23. // target: 'https://key.cnrailwaycloud.com:18181/api/gateway',// 代理目标的基础路径
  24. // changeOrigin: true,
  25. // pathRewrite: { '^/api': '' }
  26. // },
  27. // '/api2': {// 匹配所有以 '/api2'开头的请求路径
  28. // target: 'http://localhost:5001',// 代理目标的基础路径
  29. // changeOrigin: true,
  30. // pathRewrite: { '^/api2': '' }
  31. // }
  32. // }
  33. // }
  34. })