You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
499 B

  1. /*
  2. * @Description: 配置文件
  3. * @Author: hai-27
  4. * @Date: 2020-02-07 16:23:00
  5. * @LastEditors: hai-27
  6. * @LastEditTime: 2021-03-03 22:32:57
  7. */
  8. module.exports = {
  9. publicPath: './',
  10. devServer: {
  11. open: true,
  12. proxy: {
  13. '/api': {
  14. target: 'http://localhost:3000/', // 本地后端地址
  15. // target: 'http://101.132.181.9:3000/', // 线上后端地址
  16. changeOrigin: true, //允许跨域
  17. pathRewrite: {
  18. '^/api': ''
  19. }
  20. }
  21. }
  22. }
  23. }