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.
 
 
 

18 lines
588 B

const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
devServer: {
port: "8080",
proxy: {
"/api": {
target: "http://192.168.1.108:44358",
changeorigin: true, // 在本会创建一个虚拟服务满,然后发送清求的数,并同时接收济求的数,这样服务端和服务减进行数据的交互就不会有域问题
rewite: (path) => path.replace(/^\/api/, ""),
// pathRewrite: {
// "^/api": ''
// }
},
},
},
});