You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
851 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. const { defineConfig } = require("@vue/cli-service");
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. lintOnSave: false,
  5. devServer: {
  6. port: "8080",
  7. proxy: {
  8. "/api": {
  9. target: "http://192.168.1.108:44358",
  10. changeorigin: true, // 在本会创建一个虚拟服务满,然后发送清求的数,并同时接收济求的数,这样服务端和服务减进行数据的交互就不会有域问题
  11. rewite: (path) => path.replace(/^\/api/, ""),
  12. // pathRewrite: {
  13. // "^/api": ''
  14. // }
  15. },
  16. },
  17. },
  18. // pages: {
  19. // index: {
  20. // entry: 'src/main.js',
  21. // template: 'src/App.vue',
  22. // filname: 'index.html'
  23. // },
  24. // about: {
  25. // entry: 'src/main.js',
  26. // template: 'src/App.vue',
  27. // filname: 'about.html'
  28. // },
  29. // }
  30. });