ota修改

This commit is contained in:
高嵩
2023-05-18 18:03:26 +08:00
parent 5aaa2c6a7f
commit 3e539b6cf7
2 changed files with 14 additions and 8 deletions
@@ -392,10 +392,13 @@ export default {
}, },
update(val) { update(val) {
this.$forceUpdate() this.$forceUpdate()
localStorage.removeItem('otaId')
localStorage.removeItem('otaIdT') if(value != undefined){
localStorage.setItem('otaIdT', val) localStorage.removeItem('otaId')
this.getData('qiehuan') localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT', val)
this.getData('qiehuan')
}
}, },
update2() { update2() {
this.$forceUpdate() this.$forceUpdate()
@@ -296,11 +296,14 @@ export default {
}, },
methods: { methods: {
changeId(value,option){ changeId(value,option){
localStorage.removeItem('otaId') if(value != undefined){
localStorage.removeItem('otaIdT') localStorage.removeItem('otaId')
localStorage.setItem('otaIdT',value) localStorage.removeItem('otaIdT')
localStorage.setItem('otaIdT',value)
this.getData('qiehuan')
}
this.getData('qiehuan')
}, },
// 模板下载 // 模板下载
handleModule() { handleModule() {