From 1bb161c3a19b95b546c99db5296758c77cefe1c3 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 11 十一月 2025 16:46:53 +0800
Subject: [PATCH] 点位数据处理无数据的时段展示效果
---
vue.config.js | 31 ++++++++++++++++++-------------
1 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 1386376..6273b06 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,7 +1,7 @@
/*
* @Date: 2024-03-23 09:49:06
* @LastEditors: gaoshp
- * @LastEditTime: 2024-11-03 20:06:33
+ * @LastEditTime: 2025-11-04 22:19:58
* @FilePath: /cps-web/vue.config.js
*/
const { defineConfig } = require('@vue/cli-service')
@@ -18,28 +18,31 @@
//寮�鍙戞湇鍔�,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:4102',
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
- // '/api/smis/workstation/listDatapointsByWorkstationId': {
- // target: 'http://120.46.212.231:4102',
- // // 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:4102',
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
@@ -47,7 +50,7 @@
}
},
'/api/smis/workstation/export-dp': {
- target: 'http://120.46.212.231:4102',
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
@@ -55,10 +58,12 @@
}
},
'/api': {
+ // target: 'http://localhost:4102',
target: process.env.VUE_APP_API_BASEURL,
ws: true,
pathRewrite: {
- // '^/api': '/'
+ //'^/api': '/api'
+ '^/api': '/'
}
},
--
Gitblit v1.9.3