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{
this.$message.warning(res.message)
this.flag = 1
localStorage.setItem('otaflag',this.flag)
}
})
}
@@ -216,7 +216,9 @@ export default {
tabClick(tab,event){
this.tabActive=tab
if(this.oldName == this.$t('basicinformationofvehicletype')){
this.$refs.dealtWithRef.save()
} else if(this.oldName == this.$t('onlineupgraderequirements')){
this.$refs.doneListRef.save()
} else if(this.oldName == this.$t('safetymeasure')){
@@ -230,7 +232,16 @@ export default {
} else if(this.oldName == this.$t('other')){
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() {
this.toggleSearchStatus = !this.toggleSearchStatus