From aae6cb63fac8f2956615481382c101cfd2e7d45c Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 28 五月 2023 22:15:52 +0800
Subject: [PATCH] gxapi
---
src/stores/userInfo.ts | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index e7d5b0b..1730e13 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -21,6 +21,7 @@
patientTelNo:'',
patientAvatarIcon:'',
patientCreditValue:0,
+ patientAddress:'',
clientCode:'',
},
pressure:'',
@@ -31,14 +32,12 @@
info.value.headimgurl=userInfo.headimgurl
info.value.nickname=userInfo.nickname
}
- function setPatient(userInfo:object) {
+ function setPatient(userInfo:any) {
patient.value=userInfo
}
- const setPatientApi= async ()=>{
- const res= await ajaxPost('/patient/info/getPatientInfo','')
- console.log('-----')
- console.log(res)
- setPatient(res)
+ const setPatientApi= async()=>{
+ const res= await ajaxPost('/patient/info/getPatientInfo','')
+ setPatient(res)
}
return { info,patient,setPatient, setInfo,setPatientApi }
--
Gitblit v1.8.0