From 986d57aa33db657f5b3e5457b13c56158c774540 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Tue, 28 Oct 2025 14:27:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20emu=20=E8=AE=BE=E5=A4=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=82=B9=E4=BD=8D=E5=80=BC=E4=BF=9D=E7=95=99=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 4 ++-- src/views/stationData/topology/components/detailDrawer.vue | 2 +- src/views/stationData/transfer/components/deviceDrawer.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.local b/.env.local index 11a68f9..9491a04 100644 --- a/.env.local +++ b/.env.local @@ -1,3 +1,3 @@ VITE_APP_ENV = local -VITE_BASE_URL = 'http://192.168.1.99:8080' -VITE_ZMQ_BASE_URL = '192.168.1.99' \ No newline at end of file +VITE_BASE_URL = 'http://192.168.1.210:8080' +VITE_ZMQ_BASE_URL = '192.168.1.210' \ No newline at end of file diff --git a/src/views/stationData/topology/components/detailDrawer.vue b/src/views/stationData/topology/components/detailDrawer.vue index 131b7c5..8900f2e 100644 --- a/src/views/stationData/topology/components/detailDrawer.vue +++ b/src/views/stationData/topology/components/detailDrawer.vue @@ -303,7 +303,7 @@ function setChartData(pointData: any[]) { const time = dayjs(Number(ts)).format('YYYY-MM-DD HH:mm:ss') if (addr) { const colData = chartData.get(addr) - const value = parseInt((val ? Number(val) : 0).toFixed(2)) + const value = Number((val ? Number(val) : 0).toFixed(2)) if (colData) { colData.push([time, value]) } else { diff --git a/src/views/stationData/transfer/components/deviceDrawer.vue b/src/views/stationData/transfer/components/deviceDrawer.vue index ccbd3ce..3ab2c3e 100644 --- a/src/views/stationData/transfer/components/deviceDrawer.vue +++ b/src/views/stationData/transfer/components/deviceDrawer.vue @@ -275,7 +275,7 @@ function setChartData(pointData: any[]) { const time = dayjs(Number(ts)).format('YYYY-MM-DD HH:mm:ss') if (addr) { const colData = chartData.get(addr) - const value = parseInt((val ? Number(val) : 0).toFixed(2)) + const value = Number((val ? Number(val) : 0).toFixed(2)) if (colData) { colData.push([time, value]) } else {