From fa37d06890dabf79562128d22f7b043025732802 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期六, 05 十月 2024 17:29:10 +0800
Subject: [PATCH] update
---
vue.config.js | 35 ++++++++++++++++++++++++++++++-----
1 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index cb2ce67..8d8506e 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: gaoshp
+ * @LastEditTime: 2024-10-05 17:23:49
+ * @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,34 @@
//寮�鍙戞湇鍔�,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': {
target: process.env.VUE_APP_API_BASEURL,
ws: true,
@@ -29,6 +53,7 @@
// '^/api': '/'
}
},
+
}
},
--
Gitblit v1.9.3