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