回显抖动

This commit is contained in:
yuekuo
2023-03-31 16:59:41 +08:00
parent 9b77214119
commit 37716d988c
@@ -376,8 +376,8 @@ this.$forceUpdate()
} }
getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{ getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
if(res.code==200){ if(res.code==200){
if(res.result.zxsj==0){ if(res.result.zxsj==null){
res.result.zxsj=null res.result.zxsj=undefined
} }
this.form=res.result==null ? { this.form=res.result==null ? {
sjmd:'', sjmd:'',
@@ -400,7 +400,7 @@ this.$forceUpdate()
} }
this.form.otaId=otaId this.form.otaId=otaId
if(this.form.zxsj==undefined){ if(this.form.zxsj==undefined){
this.form.zxsj=0 this.form.zxsj=undefined
} }
postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{ postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{
if(res.code==200){ if(res.code==200){