From 5cc9eb2d302ffe6218221208a28b60f91b57e41e Mon Sep 17 00:00:00 2001
From: he wei <858544502@qq.com>
Date: 星期六, 09 十一月 2024 14:02:59 +0800
Subject: [PATCH] U bug修复

---
 src/views/test/jhyRtInfo.vue |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/views/test/jhyRtInfo.vue b/src/views/test/jhyRtInfo.vue
index a2e39bd..0dac298 100644
--- a/src/views/test/jhyRtInfo.vue
+++ b/src/views/test/jhyRtInfo.vue
@@ -126,6 +126,13 @@
   changeTab();
 });
 
+watch(() => props.onlyOneGroup, (val) => {
+  if (battVolChart.value) {
+    battVolChart.value[0].resize();
+    battVolChart.value[1]?.resize();
+  }
+});
+
 function changeTab() {
   if (infoTab.value == 2) {
     updateChart();
@@ -155,7 +162,12 @@
 }
 
 onMounted(() => {
-  // sendData(JSON.stringify({ devId: props.devId, devType: 1 }));
+  // console.log('devId,' , props.devId, 'onMounted', '=============');
+  
+  let reg = /^2/;
+  if (reg.test(props.devId)) {
+    sendData(JSON.stringify({ devId: props.devId, devType: 2 }));
+  }
 });
 </script>
 

--
Gitblit v1.9.1