haoxuan
2024-02-07 d68b036a3b3c67273b8effa3c9925ef3869a91ba
vue.config.js
@@ -14,15 +14,24 @@
  devServer: {
    proxy: {
      "/api-s": {
        target: "http://192.168.20.119:8005",
        target: "http://192.168.20.119:8005", //
        // target:"http://fai365.com:9083",  //
        ws: true,
        changeOrigin: true
      },
      "/api-wms": {
        target: "http://192.168.20.119:8005",
        // target:"http://fai365.com:9083",
        ws: true,
        changeOrigin: true
      }
      },
      "/api/menu": {
        target: "http://192.168.20.119:8001",
         //注: 暂时使用====用戶权限,角色暂时用的环境
        //  target: "http://192.168.20.119:8011",
        ws: true,
        changeOrigin: true,
      },
    }
  },
  transpileDependencies: [
@@ -30,13 +39,13 @@
    "crypto-js",
    "sockjs-client"
  ],
  configureWebpack: (config) => {
  configureWebpack: () => {
    const configNew = {}
    if (process.env.NODE_ENV === "production") {
      configNew.externals = externals
      configNew.plugins = []
    } else if (process.env.NODE_ENV === "development") {
      console.log("development", config)
      // console.log("development", config)
    }
    return configNew
  },