chenyc
2023-05-28 aae6cb63fac8f2956615481382c101cfd2e7d45c
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 }