From 9fe29d060ff1b2259648e77305fca3eb6baed29b Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 19 十月 2024 20:58:05 +0800
Subject: [PATCH] update

---
 vue.config.js |   48 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 37 insertions(+), 11 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 8fdc9eb..3c4ebea 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-03-28 11:34:07
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-10-06 10:17:18
  * @FilePath: /cps-web/vue.config.js
  */
 const { defineConfig } = require('@vue/cli-service')
@@ -9,7 +9,7 @@
 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:4102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/api/blade-cps/workstation/listDatapointsByWorkstationId': {
+				target: 'http://120.46.212.231:4102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/api/blade-cps/workstation/saveDatapoints': {
+				target: 'http://120.46.212.231:4102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
+			'/api/blade-cps/workstation/export-dp': {
+				target: 'http://120.46.212.231:4102',
+				// ws: true,
+				changeOrigin: true,
+				pathRewrite: {
+					'^/api': '/'
+				}
+			},
 			'/api': {
 				target: process.env.VUE_APP_API_BASEURL,
 				ws: true,
@@ -29,13 +61,7 @@
 					// '^/api': '/'
 				}
 			},
-			'/myapi': {
-				target: process.env.VUE_APP_API_MYBASEURL,
-				ws: true,
-				pathRewrite: {
-					'^/myapi': '/'
-				}
-			}
+
 		}
 	},
 

--
Gitblit v1.9.3