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