vue.config.js 271 B

12345678910111213141516
  1. module.exports = {
  2. publicPath: './',
  3. devServer: {
  4. host: '127.0.0.1',
  5. port: 8010,
  6. proxy: {
  7. '/api/': {
  8. target: 'http://127.0.0.1:8080/api',
  9. changeOrigin: true,
  10. pathRewrite: {
  11. '^/api': ''
  12. }
  13. }
  14. }
  15. }
  16. }