charles
2024-07-18 dbab45ef6e56c32ca3b2d286ec5cb7ed0c86bfea
vue.config.js
@@ -4,7 +4,7 @@
function resolve(dir) {
  return path.join(__dirname, dir)
}
const ipNum=144;
// 设置不参与构建的库
const externals = {}
module.exports = {
@@ -14,14 +14,14 @@
  devServer: {
    proxy: {
      "/api/menu":{
        target: "http://192.168.20.119:8001", // http://192.168.20.119:8002 http://fai365.com:30150/
        target: `http://192.168.0.${ipNum}:8001`, // http://192.168.20.119:8002 http://fai365.com:30150/
        // 建道本地环境
        // target: "http://192.168.20.118:8002",
        ws: true,
        changeOrigin: true
      },
      "/api": {
        target: "http://192.168.20.119:8002", // http://192.168.20.119:8002 http://fai365.com:30150/
        target: `http://192.168.0.${ipNum}:8002`, // http://192.168.20.119:8002 http://fai365.com:30150/
        // 建道本地环境
        // target: "http://192.168.20.118:8002",
        ws: true,