vue.config.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. const path = require("path");
  2. module.exports = {
  3. publicPath: "./",
  4. devServer: {
  5. host: "0.0.0.0",
  6. port: "",
  7. disableHostCheck: true, // 关闭主机头检测
  8. proxy: {
  9. "/api334343": {
  10. // target: "http://mem.360lj.com/ueapi1", // 目标 API 地址 富勇电脑
  11. target: "http://ue.360lj.com", // 目标 API 地址 富勇电脑
  12. ws: true,
  13. changeOrigin: true, // 是否跨域
  14. pathRewrite: {
  15. "^/api": "/api"
  16. }
  17. },
  18. "/ymall": {
  19. // target: "http://mem.360lj.com:7001", // 医生注册Java接口
  20. target: "http://mem.360lj.com", // 医生注册Java接口
  21. ws: true,
  22. changeOrigin: true, // 是否跨域
  23. pathRewrite: {
  24. "^/ymall": "/ymall"
  25. }
  26. },
  27. "/note": {
  28. // target: "http://mem.360lj.com:7001", // 医生注册Java接口
  29. target: "http://mem.360lj.com", // 医生注册Java接口
  30. ws: true,
  31. changeOrigin: true, // 是否跨域
  32. pathRewrite: {
  33. "^/note": "/note"
  34. }
  35. }
  36. },
  37. overlay: {
  38. warnings: false,
  39. errors: false,
  40. lintOnSave: false
  41. }
  42. }
  43. };