From 10bdb4ff5b468c77aad45ab2ec5158d715ab6a3d Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 19 七月 2023 14:53:11 +0800
Subject: [PATCH] 更新测温模块
---
src/stores/sockteInfo.ts | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/stores/sockteInfo.ts b/src/stores/sockteInfo.ts
index e52ebda..3b106f9 100644
--- a/src/stores/sockteInfo.ts
+++ b/src/stores/sockteInfo.ts
@@ -42,10 +42,16 @@
const isLink=ref(false) // sockte 链接状态
const netLink=ref(true) // 网络链接状态
const pcName=ref('')
+ // 温度
+ const wendu=ref(0)
const weightSockte=ref(weightInfo) // 体重秤sockte结果
const xyjSockte=ref(xyjInfo) // 血压计sockte结果
const dkqSockte=ref(dkqInfo) // 读卡器sockte结果
const faceInfoSockte=ref(faceInfo)
+ // 更新温度
+ function setWendu(wen_du:number){
+ wendu.value=wen_du
+ }
// 更新连接状态
function setsockteIsLink(Link:boolean){
isLink.value=Link
@@ -112,7 +118,7 @@
pcName.value=name
}
- return {isLink,netLink,weightSockte,xyjSockte,dkqSockte,faceInfoSockte,pcName,setsockteIsLink,setnetLink,setweightSockte,
- setweightState,setPcName,setXtjState,setfaceSockte,
+ return {isLink,netLink,weightSockte,xyjSockte,dkqSockte,wendu,faceInfoSockte,pcName,setsockteIsLink,setnetLink,setweightSockte,
+ setweightState,setPcName,setXtjState,setfaceSockte,setWendu,
setxyjSockte,setdkqSockte}
})
\ No newline at end of file
--
Gitblit v1.8.0