修复切换登录状态后用户身份未更新的bug

This commit is contained in:
唐明明
2021-09-16 13:54:37 +08:00
parent b12465f611
commit 6a9b350413
14 changed files with 4555 additions and 4038 deletions

View File

@@ -89,6 +89,7 @@
return
}
index().then(res => {
this.certification = res.is_certification
if(!res.is_certification){
this.getAppliesQuery()
return
@@ -104,10 +105,10 @@
middle : res.middle,
order : res.order
}
this.certification = res.is_certification
this.employee = res.is_employee
this.loding = false
}).catch(err =>{
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'
@@ -117,6 +118,7 @@
// 查询企业认证状态
getAppliesQuery(){
appliesQuery().then(res=>{
console.log(res)
this.appliesState = res
this.loding = false
}).catch(err => {