zhanghua
2024-12-22 9d059f329e8d9fd629bdbf209e66ae7220155320
vue.config.js
@@ -6,7 +6,7 @@
  return path.join(__dirname, dir);
}
const name = defaultSettings.title || "vue Admin Template"; // page title
const name = defaultSettings.title || "叮当微教务"; // page title
// If your port is set to 80,
// use administrator privileges to execute the command line.
@@ -39,7 +39,7 @@
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        // 匹配所有以 '/dev-api'开头的请求路径
        target: "http://192.168.3.88:18080/dream_test", //类似于Nginx反向代理
        target: "http://127.0.0.1:18081/dream", //类似于Nginx反向代理
        changeOrigin: true, // 支持跨域
        pathRewrite: {
          // 重写路径: 去掉路径中开头的'/dev-api'