vue.config.js 580 B

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