Browse Source

fix: 首页消毒控制

master
guoapeng 2 weeks ago
parent
commit
02462b077f
  1. 14
      src/components/home/HomeOperation.vue

14
src/components/home/HomeOperation.vue

@ -130,8 +130,15 @@ const doStopDisinfect = async () => {
params: { loglevel: formulaStore.loglevel },
}
await sendCmd(stopParams)
const poll = setInterval(() => {
if (operationState.value) {
systemStore.updateLoading(false)
clearInterval(poll)
}
}, 100)
}
finally {
catch (e) {
console.log(e)
systemStore.updateLoading(false)
}
}
@ -201,7 +208,10 @@ const stopInjection = async () => {
</template>
</bt-button>
</div>
<div style="width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 10px">
<div
v-if="!operationState"
style="width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 10px"
>
<div style="margin-right: 10px">
<span>强制停止喷液: </span>
<span v-if="homeStore.disinfectionState.handlePumpStopFlag">1</span>

Loading…
Cancel
Save