From c8400442a5b9cb1cfd9157a0ae0504adf03064f9 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Sun, 4 Jan 2026 16:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=8F=B7=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mine/personList.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/mine/personList.vue b/src/views/mine/personList.vue index 9aea1a5d..dc8c2d73 100644 --- a/src/views/mine/personList.vue +++ b/src/views/mine/personList.vue @@ -168,11 +168,16 @@ 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){ + if((res.data?.name == this.personInfo.wechatName) || (!res.data && this.personInfo.wechatName)){ + console.log('11111111') this.$set(this.personList[this.reviseIndex],'isChange',false) }else { + console.log('2222222') this.$set(this.personList[this.reviseIndex],'isChange',true) } + console.log('this.personList',this.personList) + let flagRevise=this.personList.some(item => 'isChange' in item && !item.isChange) + console.log('存在未修改',flagRevise) if(res.data){ this.personList[this.reviseIndex].wechatId=res.data?.externalUserId this.personList[this.reviseIndex].wechatName=res.data?.name