From f1452cd3c0b4202b92254055dff39be400248a5a Mon Sep 17 00:00:00 2001 From: liangbin <15536829364@163.com> Date: Fri, 23 Jan 2026 11:03:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=94=B5=E4=BC=B4=E7=83=AD=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B9=B6=E7=AE=80=E5=8C=96=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在电伴热设备视图中添加加热状态和温度显示 移除冗余的代理配置并更新目标地址 --- src/views/view/index.vue | 15 +++++++++++++-- vue.config.js | 31 +++++++------------------------ 2 files changed, 20 insertions(+), 26 deletions(-) diff --git a/src/views/view/index.vue b/src/views/view/index.vue index 8331d28..a928c1d 100644 --- a/src/views/view/index.vue +++ b/src/views/view/index.vue @@ -1021,10 +1021,21 @@ 电伴热设备: - + - + + + 加热状态: + {{iotDBRInfo['加热状态']?'开':'关'}} + + + 温度1: + {{iotDBRInfo['温度1']}} °C + + + 温度2: + {{iotDBRInfo['温度2']}} °C diff --git a/vue.config.js b/vue.config.js index 80907d0..d16f8e0 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,26 +10,13 @@ module.exports = { "Access-Control-Allow-Origin": "*", }, proxy: { - "/TestApi": { - //本地服务接口地址 - target: "http://127.0.0.1:8000", - ws: true, - https: true, - pathRewrite: { - "^/TestApi": "", - }, - }, + "/json": { //本地服务接口地址 // target: 'http://link.ser99.vip:8080/zhongkai', target: 'http://65.73.11.246:7774', // target: 'http://172.16.1.111:8000', - // target: "http://172.16.1.146:8084", // 汤 - // target: 'http://172.16.1.162:8233', - // target: 'http://192.168.13.138:8233', - // target: 'http://172.16.1.113:8012', - // target: 'http://172.16.1.131:8009', - // target: 'http://172.16.1.148:8009', + // target: "http://172.16.1.146:8009", // 汤 ws: true, https: true, pathRewrite: { @@ -38,8 +25,6 @@ module.exports = { }, "/xjIotApi": { //集采 - // target: 'http://65.73.11.246:8083', - // target: 'http://172.16.1.155:8080', target: "http://172.16.1.146:8083", ws: true, https: true, @@ -50,26 +35,24 @@ module.exports = { }, "/iotApi": { //平台 - // target: 'http://65.73.11.246:8090', - // target: 'http://172.16.1.155:8080', target: "http://172.16.1.146:8081", ws: true, https: true, pathRewrite: { "^/iotApi": "/iotApi", }, - "/dmr": { + }, + "/dmr": { //平台 // target: 'http://65.73.11.246:8090', - // target: 'http://172.16.1.155:8080', - target: "http://172.16.1.146:8000", + // target: 'http://172.16.1.146:8080', + target: "http://172.16.1.111:8000", // 陈 ws: true, https: true, pathRewrite: { - "^/dmr": "/dmr", + "^/dmr": "", }, } - }, }, }, chainWebpack: (config) => {