| | |
| | | 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. |
| | |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // 匹配所有以 '/dev-api'开头的请求路径 |
| | | target: "http://192.168.3.88:18080/dream_test", //类似于Nginx反向代理 |
| | | target: "http://192.168.0.21:18081/dream", //类似于Nginx反向代理 |
| | | changeOrigin: true, // 支持跨域 |
| | | pathRewrite: { |
| | | // 重写路径: 去掉路径中开头的'/dev-api' |