vue.config.js 802 B

1234567891011121314151617181920212223
  1. /*
  2. * @Author: error: git config user.name && git config user.email & please set dead value or install git
  3. * @Date: 2022-07-09 17:02:28
  4. * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
  5. * @LastEditTime: 2022-07-25 10:28:27
  6. * @FilePath: \caiyang\vue.config.js
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. const { defineConfig } = require('@vue/cli-service')
  10. module.exports = defineConfig({
  11. transpileDependencies: true,
  12. devServer: {
  13. proxy:{
  14. '/api':{
  15. target:'http://192.168.0.101:8080/',
  16. changeOrigin:true,
  17. pathRewrite:{
  18. '^/api':''
  19. }
  20. }
  21. }
  22. }
  23. })