vue.config.js 748 B

12345678910111213141516171819202122232425262728293031
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. devServer: {
  5. port: 8080,
  6. proxy: {
  7. '/proxy_proxy/': {
  8. // 121 环境
  9. // target: 'http://121.43.55.7:10011/proxy',
  10. // 政务网 环境
  11. target: 'http://10.235.245.174:10011/proxy',
  12. changeOrigin: true,
  13. secure: false,
  14. pathRewrite: {
  15. '^/proxy_proxy': ''
  16. }
  17. },
  18. '/oauth/': {
  19. // 121 环境
  20. // target: 'http://121.43.55.7:10086/oauth',
  21. // 政务网 环境
  22. target: 'http://10.235.245.174:10086/oauth',
  23. changeOrigin: true,
  24. pathRewrite: {
  25. '^/oauth': ''
  26. }
  27. },
  28. }
  29. }
  30. })