From 9a11bff3d98aea29f37abc34a00a17f5c92ade9c Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 02 四月 2026 17:50:36 +0800
Subject: [PATCH] fix: 扫码路径ip修改

---
 vue.config.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 5822a18..c152171 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,9 @@
     "@babel",
     "resize-detector",
   ],
-  publicPath: "/",
+  // 閮ㄧ讲鍒板瓙璺緞鏃堕渶瑕佹敼 publicPath锛屽惁鍒欓潤鎬佽祫婧愪細浠庡煙鍚嶆牴鐩綍 `/static/...` 鑾峰彇澶辫触
+  // 渚嬪閮ㄧ讲鍒� `http://host/car-before/`锛屽垯鎵撳寘鏃惰缃� VUE_APP_PUBLIC_PATH=/car-before/
+  publicPath: process.env.VUE_APP_PUBLIC_PATH || "/",
   outputDir: "dist",
   assetsDir: "static",
   // 鍦ㄩ儴鍒嗙幆澧冧笅 eslint-loader 浼氬洜閰嶇疆瑙f瀽澶辫触鐩存帴瀵艰嚧鏋勫缓涓柇

--
Gitblit v1.9.3