vue.config.js 642 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. devServer: {
  3. proxy: {
  4. "/api": {
  5. target: "http://localhost:3000",
  6. changeOrigin: true,
  7. secure: false,
  8. pathRewrite: {
  9. "^/api": ''
  10. }
  11. },
  12. "/wanda": {
  13. target: "http://map.wanda.cn/editor/fmap/1001724_29",
  14. changeOrigin: true,
  15. pathRewrite: {
  16. "^/wanda": ""
  17. }
  18. }
  19. },
  20. // 关闭esline
  21. overlay: {
  22. warnings: false,
  23. errors: false
  24. },
  25. },
  26. }