35
chenyc
2025-02-28 206eb1f47082bcc28ebf8093e2899d5875e5ad0c
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 }