src/stores/userInfo.ts
@@ -21,6 +21,7 @@ patientTelNo:'', patientAvatarIcon:'', patientCreditValue:0, patientAddress:'', clientCode:'', }, pressure:'', @@ -31,13 +32,11 @@ 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) }