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 |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 6040103..c152171 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -3,7 +3,7 @@
 const defaultSettings = require("./src/settings.js");
 // 浠g悊鐩爣鍦板潃锛堝悗绔湇鍔★級锛屼緥濡�: http://172.17.0.1:8080
 // 鍚姩鏃跺彲閫氳繃鐜鍙橀噺瑕嗙洊锛歏UE_APP_PROXY_TARGET=...
-const baseUrl = process.env.VUE_APP_PROXY_TARGET || "http://1.15.17.182/:9031";
+const baseUrl = process.env.VUE_APP_PROXY_TARGET || "http://1.15.17.182:9031";
 
 function resolve(dir) {
   return path.join(__dirname, dir);
@@ -16,7 +16,7 @@
 // For example, Mac: sudo npm run
 // You can change the port by the following method:
 // port = 9527 npm run dev OR npm run dev --port = 9527
-// 鍥哄畾寮�鍙戞湇鍔$鍙o細纭繚澶栭儴鍙闂� `172.17.0.1:9031`
+// 鍥哄畾寮�鍙戞湇鍔$鍙o細纭繚澶栭儴鍙闂� `1.15.17.182:9031`
 const port = 9001; // dev port
 
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
@@ -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