/* * @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: { "/abc": { target: "http://172.16.2.10:50001/sj_raster/v6/service/10000501/1", //对应自己的接口 changeOrigin: true, ws: true, pathRewrite: { "^/abc": "", }, }, }, }, };