diff --git a/src/views/mine/personList.vue b/src/views/mine/personList.vue index af0677bd..4eb8a7f8 100644 --- a/src/views/mine/personList.vue +++ b/src/views/mine/personList.vue @@ -168,13 +168,15 @@ export default { }).then(async() => { let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId}) console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName) - if(res.data?.name == this.personInfo.wechatName){ - this.$set(this.personList[this.reviseIndex],'isChange',false) - }else { - this.$set(this.personList[this.reviseIndex],'isChange',true) + if(res.data){ + if(res.data?.name == this.personInfo.wechatName){ + this.$set(this.personList[this.reviseIndex],'isChange',false) + }else { + this.$set(this.personList[this.reviseIndex],'isChange',true) + } + this.personList[this.reviseIndex].wechatId=res.data?.externalUserId + this.personList[this.reviseIndex].wechatName=res.data?.name } - this.personList[this.reviseIndex].wechatId=res.data?.externalUserId - this.personList[this.reviseIndex].wechatName=res.data?.name await this.cancelHandle() }).catch(async () => { await this.cancelHandle()