vue.config.js 235 B

123456789101112131415
  1. const baseurl = require("./env.js");
  2. module.exports = {
  3. devServer: {
  4. proxy: {
  5. [baseurl]: {
  6. target: 'http://192.168.0.246:8601',
  7. changeOrigin: true,
  8. pathRewrite: {
  9. ["^" + baseurl]: ""
  10. }
  11. },
  12. }
  13. },
  14. }