vue.config.js 396 B

1234567891011121314151617
  1. module.exports = {
  2. productionSourceMap: false,
  3. publicPath: "./",
  4. lintOnSave: false,
  5. devServer: {
  6. proxy: { //配置跨域
  7. '/api': {
  8. target: 'https://yuehe.hellevil.com/', //这里后台的地址模拟的;应该填写你们真实的后台接口
  9. changOrigin: true, //允许跨域
  10. pathRewrite: {
  11. '^/api': ''
  12. }
  13. },
  14. }
  15. },
  16. };