34
chenyc
2022-10-21 9472c3489eb7bb0316f34aece30d1c16f939c492
src/stores/userInfo.ts
@@ -8,7 +8,20 @@
        headimgurl:'',
        nickname:'',
    })
    const patient=ref({})
    const patient=ref({
        patientInfo:{
            age:0,
            code:'',
            id:'',
            patientCardNo:'',
            patientIdentityNo:'',
            patientName:'',
            patientTelNo:'',
            patientAvatarIcon:''
        },
        pressure:'',
        weight:''
    })
    function setInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) {
        info.value.openid=userInfo.openid
        info.value.headimgurl=userInfo.headimgurl