dev: {
env: require("./dev.env"),
port: 2121,
autoOpenBrowser: true,
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {
// 域名代理
"/qcm": {
target: "https://.../", //测试服务器
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true,
},
},
dev: {
env: require("./dev.env"),
port: 2121,
autoOpenBrowser: true,
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {
// 域名代理
"/qcm": {
target: "https://.../", //测试服务器
changeOrigin: true,
},
},