From 1ca3f1a1b91ddd07e1d69e046c7a4b62fa6634c4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 04 十一月 2025 14:43:56 +0800
Subject: [PATCH] 修改开发环境服务端地址
---
vue.config.js | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 3c4ebea..04c6d3d 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,7 +1,7 @@
/*
* @Date: 2024-03-23 09:49:06
- * @LastEditors: gaoshp
- * @LastEditTime: 2024-10-06 10:17:18
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-11-27 14:59:26
* @FilePath: /cps-web/vue.config.js
*/
const { defineConfig } = require('@vue/cli-service')
@@ -23,31 +23,31 @@
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/blade-cps/workstation/listDatapointsByWorkstationId': {
- target: 'http://120.46.212.231:4102',
+ '/workinghour': {
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
- '/api/blade-cps/workstation/saveDatapoints': {
- target: 'http://120.46.212.231:4102',
+ '/api/smis/workstation/saveDatapoints': {
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
- '/api/blade-cps/workstation/export-dp': {
- target: 'http://120.46.212.231:4102',
+ '/api/smis/workstation/export-dp': {
+ target: 'http://120.46.212.231:5102',
// ws: true,
changeOrigin: true,
pathRewrite: {
@@ -55,10 +55,11 @@
}
},
'/api': {
- target: process.env.VUE_APP_API_BASEURL,
+ target: 'http://localhost:4102',
+ //process.env.VUE_APP_API_BASEURL,
ws: true,
pathRewrite: {
- // '^/api': '/'
+ '^/api': '/'
}
},
--
Gitblit v1.9.3