ota跳转
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user