1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| module.exports = {
| lintOnSave: false,
| publicPath: "./",
| outputDir: process.env.outputDir,
| devServer: {
| //proxy: "http://192.168.20.70:8001/"
| // // 配置跨域-请求后端的代理接口
| proxy: {
| "/JiangSu": {
| target: "http://localhost:8080/JiangSu", //对应自己的接口
| changeOrigin: true,
| ws: true,
| pathRewrite: {
| "^/JiangSu": "",
| },
| },
| },
| },
| };
|
|