fixed race cond
This commit is contained in:
parent
e231aa1437
commit
28392c09e2
1 changed files with 8 additions and 7 deletions
|
@ -245,12 +245,13 @@
|
|||
return a
|
||||
})
|
||||
this.$http.post(window.location.pathname + 'config', storeConfig)
|
||||
.then(response => {})
|
||||
.then(this.$http.post(window.location.pathname + 'restart'))
|
||||
.then(() => {
|
||||
document.body.style = 'display:none'
|
||||
setTimeout(() => window.location.reload(), 1e3)
|
||||
})
|
||||
.then(response => {
|
||||
document.body.style = 'display:none'
|
||||
setTimeout(() => window.location.reload(), 1e3)
|
||||
this.$http.post(window.location.pathname + 'restart')
|
||||
.then(() => {
|
||||
})
|
||||
})
|
||||
},
|
||||
addAlarm() {
|
||||
this.configData.alarms.push({
|
||||
|
@ -277,4 +278,4 @@
|
|||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue