ota跳转

This commit is contained in:
zyx.net
2023-05-16 17:25:54 +08:00
parent 60e206a995
commit 0eea77ebad
2 changed files with 13 additions and 1 deletions
@@ -412,6 +412,7 @@ import { message } from 'ant-design-vue'
}else{ }else{
this.$message.warning(res.message) this.$message.warning(res.message)
this.flag = 1 this.flag = 1
localStorage.setItem('otaflag',this.flag)
} }
}) })
} }
@@ -216,7 +216,9 @@ export default {
tabClick(tab,event){ tabClick(tab,event){
this.tabActive=tab this.tabActive=tab
if(this.oldName == this.$t('basicinformationofvehicletype')){ if(this.oldName == this.$t('basicinformationofvehicletype')){
this.$refs.dealtWithRef.save() this.$refs.dealtWithRef.save()
} else if(this.oldName == this.$t('onlineupgraderequirements')){ } else if(this.oldName == this.$t('onlineupgraderequirements')){
this.$refs.doneListRef.save() this.$refs.doneListRef.save()
} else if(this.oldName == this.$t('safetymeasure')){ } else if(this.oldName == this.$t('safetymeasure')){
@@ -230,7 +232,16 @@ export default {
} else if(this.oldName == this.$t('other')){ } else if(this.oldName == this.$t('other')){
this.$refs.otherRef.save() this.$refs.otherRef.save()
} }
this.oldName = tab setTimeout(()=>{
let otaflag = localStorage.getItem('otaflag')
if(otaflag){
console.log(otaflag)
this.tabActive = this.$t('basicinformationofvehicletype')
this.oldName = this.$t('basicinformationofvehicletype')
}
this.oldName = tab
},1000)
}, },
handleToggleSearch() { handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus this.toggleSearchStatus = !this.toggleSearchStatus