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>