From 847fdc48c6c3f21631daa43f9d73cbeda143a1bd Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Sun, 4 Jan 2026 15:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=B7=B2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9Enull=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=81=9A=E4=BB=BB=E4=BD=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/personList.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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()