vue.config.js 489 B

123456789101112131415161718192021
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. })
  5. module.exports = {
  6. publicPath: '',
  7. devServer: process.env.NODE_ENV == 'development'?{
  8. proxy: {
  9. '/api': {
  10. // target: 'https://mall.zhiqiyun.com',
  11. target: 'http://192.168.110.180:8090',
  12. // target: 'http://kyytest.zhiqiyun.com',
  13. changeOrigin: true,
  14. pathRewrite: {
  15. '^/api': ''
  16. }
  17. }
  18. }
  19. }:{}
  20. }