From 9d6f499ffbfb3762ecdc671adab192aa273fda91 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 27 十月 2022 15:42:01 +0800
Subject: [PATCH] 45
---
src/views/login/index.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index bd98772..baadcce 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -36,7 +36,8 @@
}
const getUserinfo=()=>{
ajaxPost('/patient/info/getPatientInfo','').then((re:any)=>{
- console.log(re)
+ console.log(re,'得到患者的信息getUserinfo')
+ userInfo.setPatient(re)
router.push('/')
})
}
@@ -50,7 +51,7 @@
} else {
console.log('得到tokeng')
Session.set('token', re)
- Toast('登录成功。。。。。')
+ Toast('登录成功')
getUserinfo()
}
}).finally(()=>{
@@ -80,7 +81,7 @@
Toast('登录失败,请重新登录')
} else {
Session.set('token', re)
- Toast('登录成功。。。。。')
+ Toast('登录成功')
getUserinfo()
}
})
@@ -135,11 +136,10 @@
ajaxPost('patient/info/wechatLogin','openId='+openId,config).then((re:any)=>{
console.log('openid换的accesstoken=',re)
if (re===''){
- Toast('请填写表单登录。。')
+ Toast('请填写表单登录')
} else {
- console.log()
Session.set('token', re)
- Toast('登录成功。。。。。')
+ Toast('登录成功')
getUserinfo()
}
})
--
Gitblit v1.8.0