From 5ecb7958c96d3f0b6d47b79aff7eb306c2cf690f Mon Sep 17 00:00:00 2001
From: charles <981744753@qq.com>
Date: 星期二, 06 八月 2024 11:16:58 +0800
Subject: [PATCH] gitlab上面的wms转移到公司git

---
 vue.config.js |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index fe24245..baf1a55 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,28 +1,44 @@
 const path = require("path")
 // 鍩虹璺緞 娉ㄦ剰鍙戝竷涔嬪墠瑕佸厛淇敼杩欓噷
-const publicPath = "/"
+const publicPath = "./";
 function resolve(dir) {
   return path.join(__dirname, dir)
 }
-
 // 璁剧疆涓嶅弬涓庢瀯寤虹殑搴�
-const externals = {}
+const externals = {};
+//const devServerPath ="http://wms.smartai.com:7013" //"http://wms.smartai.com:7013" http://192.168.20.119:8001
+const ipNum=46;
+//const devServerPath=`http://192.168.0.${ipNum}:8005`;
+//const devServerPath="http://192.168.0.101:8005";
+const devServerPath="http://wms.fai365.com";
 module.exports = {
   publicPath,
   lintOnSave: false,
   productionSourceMap: false, // 濡傛灉浣犱笉闇�瑕佺敓浜х幆澧冪殑source map, 鍙互灏嗗叾璁剧疆涓篺alse 浠ュ姞閫熺敓浜х幆澧冩瀯寤�
   devServer: {
+      //host:'wms.navicat.com',
+      port: 9081, // 绔彛鍙�
     proxy: {
       "/api-s": {
-        target: "http://192.168.20.119:8005",
+        target: devServerPath, // 
+        // target:"http://fai365.com:9083",  // 
         ws: true,
         changeOrigin: true
       },
       "/api-wms": {
-        target: "http://192.168.20.119:8005",
+        target: devServerPath,
+        // target:"http://fai365.com:9083",
         ws: true,
         changeOrigin: true
-      }
+      },
+      "/api/menu": {
+        //target: `http://192.168.0.${ipNum}:8001`,
+          target:devServerPath,
+         //娉細 鏆傛椂浣跨敤====鐢ㄦ埗鏉冮檺锛岃鑹叉殏鏃剁敤鐨勭幆澧�
+        //  target: "http://192.168.20.119:8011",
+        ws: true,
+        changeOrigin: true,
+      },
     }
   },
   transpileDependencies: [
@@ -30,13 +46,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
   },

--
Gitblit v1.8.0