| | |
| | | patientTelNo:'', |
| | | patientAvatarIcon:'', |
| | | patientCreditValue:0, |
| | | patientAddress:'', |
| | | clientCode:'', |
| | | }, |
| | | pressure:'', |
| | |
| | | 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 } |