|
@ -90,6 +90,10 @@ export const useWebSocketStore = defineStore({ |
|
|
} = sensor_data |
|
|
} = sensor_data |
|
|
const { nowlog, targetlog } = disinfectionState || {} |
|
|
const { nowlog, targetlog } = disinfectionState || {} |
|
|
deviceStore.updateTargetLog(targetlog) |
|
|
deviceStore.updateTargetLog(targetlog) |
|
|
|
|
|
// 必须开始的时候才改变log 否则不懂
|
|
|
|
|
|
if ([1, 2, 3, 4].includes(disinfectionWorkState)) { |
|
|
|
|
|
localStorage.setItem('logVal', targetlog) |
|
|
|
|
|
} |
|
|
deviceStore.updateNowLog(nowlog) |
|
|
deviceStore.updateNowLog(nowlog) |
|
|
if ([1, 2, 3, 4].includes(disinfectionWorkState)) { |
|
|
if ([1, 2, 3, 4].includes(disinfectionWorkState)) { |
|
|
operatorStore.updateShowStartReady(false) |
|
|
operatorStore.updateShowStartReady(false) |
|
|