export const lintOnSave = false; export const devServer = { proxy: { '/api': { target: 'http://localhost:12709/', //这里后台的地址模拟的;应该填写你们真实的后台接口 ws: false, changOrigin: true, //允许跨域 pathRewrite: { '^/api': '' } //路径重写,请求的时候使用这个api就可以 } } };