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 | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index e91cfb3..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: [
--
Gitblit v1.8.0