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 {