From 4184b50aa0f50790f21932b226da2e50d106250d Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:47:38 +0800
Subject: [PATCH] 45
---
src/stores/userInfo.ts | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index 56b0c4f..9f23958 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -8,14 +8,27 @@
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
info.value.nickname=userInfo.nickname
}
- function setPatient(patient:object) {
- patient.value=patient
+ function setPatient(info:object) {
+ patient.value=info
}
return { info,patient,setPatient, setInfo }
--
Gitblit v1.8.0