gx
chenyc
2025-05-27 424a7783c0064e5e1e94cea2691fa9d822f78460
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,我就算他归零状态了')
        }
       
    }