vue.config.js 689 B

123456789101112131415161718192021222324252627
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. publicPath: './',
  5. outputDir: 'cmnw_new',
  6. devServer:{
  7. proxy: {
  8. '/apitoken': {
  9. // target: 'http://10.108.3.5:8080/cmnw_server_dev', // 后台接口
  10. target: 'http://101.132.114.72:8080/cmnw_trans', // 后台接口
  11. changeOrigin: true, //是否跨域
  12. pathRewrite: {
  13. '^/apitoken': ''
  14. }
  15. },
  16. '/api2': {
  17. target: 'http://10.108.3.5:8080/cmnw_server_dev/api', // 后台接口
  18. changeOrigin: true, //是否跨域
  19. pathRewrite: {
  20. '^/api2': ''
  21. }
  22. },
  23. }
  24. }
  25. })