确认已添加接口返回null时不做任何处理

This commit is contained in:
2026-01-04 16:01:58 +08:00
parent 847fdc48c6
commit 6dbb1377be

View File

@@ -168,12 +168,12 @@ 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
}