src/views/login/index.vue
@@ -36,7 +36,7 @@ } const getUserinfo=()=>{ ajaxPost('/patient/info/getPatientInfo','').then((re:any)=>{ console.log(re) console.log(re,'得到患者的信息getUserinfo') userInfo.setPatient(re) router.push('/') }) @@ -138,7 +138,6 @@ if (re===''){ Toast('请填写表单登录。。') } else { console.log() Session.set('token', re) Toast('登录成功。。。。。') getUserinfo()