vue.config.js 399 B

12345678910111213141516171819
  1. const path = require("path");
  2. module.exports = {
  3. publicPath: "./",
  4. devServer: {
  5. host: "0.0.0.0",
  6. port: '',
  7. proxy: {
  8. "/weixin": {
  9. target: "https://mem.360lj.com", // 目标 API 地址 电脑
  10. ws: true,
  11. changeOrigin: true, // 将主机标头的原点更改为目标URL
  12. pathRewrite: {
  13. "^/weixin": "/weixin"
  14. }
  15. }
  16. }
  17. }
  18. };