module.exports = { productionSourceMap: false, publicPath: "./", lintOnSave: false, devServer: { proxy: { //配置跨域 '/api': { target: 'https://mp.cchuijibao.com/', //这里后台的地址模拟的;应该填写你们真实的后台接口 changOrigin: true, //允许跨域 pathRewrite: { '^/api': '' } }, } }, };