From ce259180a1a76db6a7e89d651dc3eb1f49932202 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 10 十月 2026 19:48:50 +0800
Subject: [PATCH] 修改装箱清单打印样式

---
 common/config.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/common/config.js b/common/config.js
index 3f42fa4..66d534a 100644
--- a/common/config.js
+++ b/common/config.js
@@ -22,7 +22,13 @@
 config.env = "development";
 // config.baseUrl = 'https://mes-demo.asun.cloud';
 // config.baseUrl = "http://192.168.32.65:9999";
-config.baseUrl = "";
+// 鍚庡彴鏈嶅姟鐪熷疄鍦板潃锛圓pp / 灏忕▼搴� 鎵撳寘鍚庝娇鐢紝蹇呴』鏄甫绔彛鐨勭粷瀵瑰湴鍧�锛�
+config.serverUrl = "http://192.168.22.25:80";
+
+// 娴忚鍣�(H5)閲屽繀椤荤敤鐩稿鍦板潃锛岃姹傛墠浼氳蛋 manifest.json 閲岀殑 devServer 浠g悊锛�
+// 涓�鏃﹀啓鎴愮粷瀵瑰湴鍧�锛岃姹備細鐩磋繛鍚庣锛屾祻瑙堝櫒鎸夎法鍩�(CORS)鎷︽埅銆�
+const isH5 = typeof window !== "undefined" && typeof window.document !== "undefined";
+config.baseUrl = isH5 ? "" : config.serverUrl;
 config._api_key = "7a0e8d2d441f8233ef0f3683ca2fc848";
 config.appKey = "55e70d3b74c1c8a70481173bf233a5e1";
 config.downLoadEnv = "development";

--
Gitblit v1.9.3