From 09d12c733279d45253d2d04f8835cc6771a1f1fa Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 18 十一月 2025 16:58:35 +0800
Subject: [PATCH] 1

---
 vue.config.js |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 04c6d3d..46ed856 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,7 +1,7 @@
 /*
  * @Date: 2024-03-23 09:49:06
- * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-11-27 14:59:26
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-11-04 22:19:58
  * @FilePath: /cps-web/vue.config.js
  */
 const { defineConfig } = require('@vue/cli-service')
@@ -18,10 +18,14 @@
 
 	//寮�鍙戞湇鍔�,build鍚庣殑鐢熶骇妯″紡杩橀渶nginx浠g悊
 	devServer: {
+		client: {
+			overlay: false
+		},
 		allowedHosts: 'all',
 		open: false, //杩愯鍚庤嚜鍔ㄦ墦寮�娴忚鍣�
 		port: process.env.VUE_APP_PORT, //鎸傝浇绔彛
 		proxy: {
+			/*
 			'/api/smart-collect': {
 				target: 'http://120.46.212.231:5102',
 				// ws: true,
@@ -53,12 +57,13 @@
 				pathRewrite: {
 					'^/api': '/'
 				}
-			},
+			},*/
 			'/api': {
-				target: 'http://localhost:4102', 
-				//process.env.VUE_APP_API_BASEURL,
+				// target: 'http://localhost:4102', 
+				target: process.env.VUE_APP_API_BASEURL,
 				ws: true,
 				pathRewrite: {
+					 //'^/api': '/api'
 					 '^/api': '/'
 				}
 			},

--
Gitblit v1.9.3