1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| /*
| * @Description:
| * @Author: 王旭
| * @Date: 2023-02-27 13:56:51
| * @LastEditTime: 2023-03-02 11:28:29
| * @LastEditors: 王旭
| */
| module.exports = {
| lintOnSave: false,
| publicPath: "./",
| outputDir: process.env.outputDir,
| devServer: {
| //proxy: "http://192.168.20.70:8001/"
| // // 配置跨域-请求后端的代理接口
| proxy: {
| "/TMS": {
| target: "http://192.168.20.39:9055/gisserver/tmsserver/moondom", //对应自己的接口
| changeOrigin: true,
| ws: true,
| pathRewrite: {
| "^/TMS": "",
| },
| },
|
| },
| },
| };
|
|