From 424a7783c0064e5e1e94cea2691fa9d822f78460 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 五月 2025 08:48:18 +0800
Subject: [PATCH] gx
---
src/stores/sockteInfo.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/stores/sockteInfo.ts b/src/stores/sockteInfo.ts
index 973b618..6ed2aa0 100644
--- a/src/stores/sockteInfo.ts
+++ b/src/stores/sockteInfo.ts
@@ -1,4 +1,5 @@
import { defineStore } from 'pinia'
+import { patientInfoStore } from './patient';
import { ref } from 'vue'
import { Session } from '@/utils/storage'
import { boolean, string } from 'yargs'
@@ -74,13 +75,14 @@
* @param infoObj 体重结果
*/
function setweightSockte(infoObj:info){
- if(Number(infoObj.result)>10||Number(infoObj.result)===0){
+ console.log('写入体重结果',infoObj)
+ if(infoObj.result&&Number(infoObj.result)>10){
weightSockte.value.deviceName=infoObj.deviceName
weightSockte.value.result=infoObj.result
weightSockte.value.resultTime=infoObj.resultTime
weightSockte.value.state=infoObj.state
}else{
- console.log('体重不足10kg')
+ console.log('体重不足10kg,我就算他归零状态了')
}
}
--
Gitblit v1.8.0