zhanghua
2024-12-20 320e75460d2f5e517c902b87fcc5c4d220472f6f
vue.config.js
@@ -39,7 +39,7 @@
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        // 匹配所有以 '/dev-api'开头的请求路径
        target: "http://localhost:18080/dream", //类似于Nginx反向代理
        target: "http://127.0.0.1/dream", //类似于Nginx反向代理
        changeOrigin: true, // 支持跨域
        pathRewrite: {
          // 重写路径: 去掉路径中开头的'/dev-api'