修复切换登录状态后用户身份未更新的bug
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user