From c978996d3e0390c0050479be4684af895cfb72cd Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 18 三月 2025 17:17:39 +0800
Subject: [PATCH] 1

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

diff --git a/vue.config.js b/vue.config.js
index cb2ce67..2d7118e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,15 +1,15 @@
 /*
  * @Date: 2024-03-23 09:49:06
- * @LastEditors: Sneed
- * @LastEditTime: 2024-04-10 22:11:52
- * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/vue.config.js
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-11-27 14:59:26
+ * @FilePath: /cps-web/vue.config.js
  */
 const { defineConfig } = require('@vue/cli-service')
 
 module.exports = defineConfig({
 	lintOnSave: false,
 	//璁剧疆涓虹┖鎵撳寘鍚庝笉鍒嗘洿鐩綍杩樻槸澶氱骇鐩綍
-	publicPath:'',
+	publicPath: '',
 	//build缂栬瘧鍚庡瓨鏀鹃潤鎬佹枃浠剁殑鐩綍
 	//assetsDir: "static",
 
@@ -18,10 +18,42 @@
 
 	//寮�鍙戞湇鍔�,build鍚庣殑鐢熶骇妯″紡杩橀渶nginx浠g悊
 	devServer: {
-        allowedHosts: 'all',
+		allowedHosts: 'all',
 		open: false, //杩愯鍚庤嚜鍔ㄦ墦寮�娴忚鍣�
 		port: process.env.VUE_APP_PORT, //鎸傝浇绔彛
 		proxy: {
+			'/api/smart-collect': {
+				target: 'http://120.46.212.231:5102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/workinghour': {
+				target: 'http://120.46.212.231:5102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/api/smis/workstation/saveDatapoints': {
+				target: 'http://120.46.212.231:5102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/api/smis/workstation/export-dp': {
+				target: 'http://120.46.212.231:5102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
 			'/api': {
 				target: process.env.VUE_APP_API_BASEURL,
 				ws: true,
@@ -29,6 +61,7 @@
 					// '^/api': '/'
 				}
 			},
+
 		}
 	},
 

--
Gitblit v1.9.3