fixed race cond

This commit is contained in:
cheetah 2025-03-14 18:51:19 +00:00
parent e231aa1437
commit 28392c09e2

View file

@ -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>