From 8cbb64e76993148e89f5f8b11ea18feafc274faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 5 Jan 2024 13:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BMI/BMI.vue | 12 ++++++------ components/BloodFat/BloodFat.vue | 10 +++++----- components/BloodOxygen/BloodOxygen.vue | 10 +++++----- components/BloodPressure/BloodPressure.vue | 10 +++++----- components/HeartRate/HeartRate.vue | 10 +++++----- components/Temperature/Temperature.vue | 10 +++++----- 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/components/BMI/BMI.vue b/components/BMI/BMI.vue index 36c48df..fc25c86 100644 --- a/components/BMI/BMI.vue +++ b/components/BMI/BMI.vue @@ -185,10 +185,10 @@ this.getServerData() }, destroyed() { - clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // clearInterval(this.timer); + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -201,7 +201,7 @@ if (newValue != 3) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -251,7 +251,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({ diff --git a/components/BloodFat/BloodFat.vue b/components/BloodFat/BloodFat.vue index 3447773..43c54f9 100644 --- a/components/BloodFat/BloodFat.vue +++ b/components/BloodFat/BloodFat.vue @@ -156,9 +156,9 @@ }, destroyed() { clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -171,7 +171,7 @@ if (newValue != 2) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -223,7 +223,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({ diff --git a/components/BloodOxygen/BloodOxygen.vue b/components/BloodOxygen/BloodOxygen.vue index fbdba6b..13d58a4 100644 --- a/components/BloodOxygen/BloodOxygen.vue +++ b/components/BloodOxygen/BloodOxygen.vue @@ -158,9 +158,9 @@ }, destroyed() { clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -173,7 +173,7 @@ if (newValue != 4) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -223,7 +223,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({ diff --git a/components/BloodPressure/BloodPressure.vue b/components/BloodPressure/BloodPressure.vue index 2948d71..242325c 100644 --- a/components/BloodPressure/BloodPressure.vue +++ b/components/BloodPressure/BloodPressure.vue @@ -172,9 +172,9 @@ }, destroyed() { clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -187,7 +187,7 @@ if (newValue != 1) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -243,7 +243,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({ diff --git a/components/HeartRate/HeartRate.vue b/components/HeartRate/HeartRate.vue index 9ca4e63..b09b899 100644 --- a/components/HeartRate/HeartRate.vue +++ b/components/HeartRate/HeartRate.vue @@ -158,9 +158,9 @@ }, destroyed() { clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -173,7 +173,7 @@ if (newValue != 5) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -223,7 +223,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({ diff --git a/components/Temperature/Temperature.vue b/components/Temperature/Temperature.vue index 60b7ae9..df47285 100644 --- a/components/Temperature/Temperature.vue +++ b/components/Temperature/Temperature.vue @@ -158,9 +158,9 @@ }, destroyed() { clearInterval(this.timer); - if (this.socketOpen == true) { - uni.closeSocket(); - } + // if (this.socketOpen == true) { + // uni.closeSocket(); + // } }, watch: { echartData: { @@ -173,7 +173,7 @@ if (newValue != 6) { clearInterval(this.timer); if (this.socketOpen == true) { - uni.closeSocket(); + // uni.closeSocket(); } } else { setTimeout(() => { @@ -223,7 +223,7 @@ scoket() { var SOCKETURL = 'ws://112.7.50.34:9002/webSocket/' + uni.getStorageSync('userinfo').cardNo const that = this - uni.closeSocket() + // uni.closeSocket() this.socketOpen = false try { uni.connectSocket({