From 43c2ebf8b5df8a785b5c717eede3aac52962cd5e Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 04 十一月 2024 13:40:27 +0800
Subject: [PATCH] 1
---
vue.config.js | 47 +++++++++++++++++++++++++++++++++++++----------
1 files changed, 37 insertions(+), 10 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 095362b..1386376 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,14 +1,15 @@
/*
* @Date: 2024-03-23 09:49:06
* @LastEditors: gaoshp
- * @LastEditTime: 2024-03-23 18:21:49
+ * @LastEditTime: 2024-11-03 20:06:33
* @FilePath: /cps-web/vue.config.js
*/
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
+ lintOnSave: false,
//璁剧疆涓虹┖鎵撳寘鍚庝笉鍒嗘洿鐩綍杩樻槸澶氱骇鐩綍
- publicPath:'',
+ publicPath: '',
//build缂栬瘧鍚庡瓨鏀鹃潤鎬佹枃浠剁殑鐩綍
//assetsDir: "static",
@@ -17,24 +18,50 @@
//寮�鍙戞湇鍔�,build鍚庣殑鐢熶骇妯″紡杩橀渶nginx浠g悊
devServer: {
- allowedHosts: 'all',
+ allowedHosts: 'all',
open: false, //杩愯鍚庤嚜鍔ㄦ墦寮�娴忚鍣�
port: process.env.VUE_APP_PORT, //鎸傝浇绔彛
proxy: {
- '/api': {
- target: process.env.VUE_APP_API_BASEURL,
- ws: true,
+ '/api/smart-collect': {
+ target: 'http://120.46.212.231:4102',
+ // ws: true,
+ changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
},
- '/myapi': {
- target: process.env.VUE_APP_API_MYBASEURL,
+ // '/api/smis/workstation/listDatapointsByWorkstationId': {
+ // target: 'http://120.46.212.231:4102',
+ // // ws: true,
+ // changeOrigin: true,
+ // pathRewrite: {
+ // '^/api': '/'
+ // }
+ // },
+ '/api/smis/workstation/saveDatapoints': {
+ target: 'http://120.46.212.231:4102',
+ // ws: true,
+ changeOrigin: true,
+ pathRewrite: {
+ '^/api': '/'
+ }
+ },
+ '/api/smis/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,
pathRewrite: {
- '^/myapi': '/'
+ // '^/api': '/'
}
- }
+ },
+
}
},
--
Gitblit v1.9.3