vue.config.js 603 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. pages: {
  3. index: {
  4. // 入口
  5. entry: "src/main.js"
  6. }
  7. },
  8. publicPath: './',
  9. // 关闭语法提示检查
  10. lintOnSave: false,
  11. // devServer: {
  12. // proxy: 'http://123.60.111.36:8080/bwj/rest/webclientrest'
  13. // }
  14. devServer: {
  15. proxy: {
  16. '/api': {
  17. // 主服务器
  18. target: 'http://123.60.111.36:8080/bwj/rest/webclientrest',
  19. pathRewrite: {'^/api': ''}
  20. // ws: true,
  21. // changOrigin: true
  22. }
  23. }
  24. }
  25. }