确认已添加接口返回null时不做任何处理
This commit is contained in:
@@ -168,13 +168,15 @@ export default {
|
|||||||
}).then(async() => {
|
}).then(async() => {
|
||||||
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
let res=await confirmAddWechat({supplierId:this.supplierId,supplierPersonInfoId:this.personInfoId})
|
||||||
console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName)
|
console.log('res',this.personInfo,res.data?.name,this.personInfo.wechatName)
|
||||||
if(res.data?.name == this.personInfo.wechatName){
|
if(res.data){
|
||||||
this.$set(this.personList[this.reviseIndex],'isChange',false)
|
if(res.data?.name == this.personInfo.wechatName){
|
||||||
}else {
|
this.$set(this.personList[this.reviseIndex],'isChange',false)
|
||||||
this.$set(this.personList[this.reviseIndex],'isChange',true)
|
}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()
|
await this.cancelHandle()
|
||||||
}).catch(async () => {
|
}).catch(async () => {
|
||||||
await this.cancelHandle()
|
await this.cancelHandle()
|
||||||
|
|||||||
Reference in New Issue
Block a user