Browse Source

低成本消毒页面指令错误

master
王梦远 2 weeks ago
parent
commit
803b4600de
  1. 1
      src/components/home/HomeOperation.vue
  2. 5
      src/components/home/HomeSetting.vue
  3. 3
      src/views/home/index.vue

1
src/components/home/HomeOperation.vue

@ -55,7 +55,6 @@ watchEffect(() => {
/** /**
* @hook 生命周期钩子 - 组件挂载完成时执行 * @hook 生命周期钩子 - 组件挂载完成时执行
* @description 订阅消毒状态更新事件
*/ */
onMounted(async () => { onMounted(async () => {
}) })

5
src/components/home/HomeSetting.vue

@ -57,7 +57,10 @@ watchEffect(() => {
* @description 初始化压力配置 * @description 初始化压力配置
*/ */
onMounted(async () => { onMounted(async () => {
await getPressureConfig() //
const deviceInfo: Device.DeviceInfo = deviceStore.deviceInfo
if (deviceInfo.deviceType !== useDeviceStore().deviceTypeMap.LargeSpaceDM_B) {
await getPressureConfig() //
}
}) })
/** /**

3
src/views/home/index.vue

@ -77,8 +77,7 @@ const nowLiquidProgress = computed(() => {
if (!liquidInfo.value.nowLiquid) { if (!liquidInfo.value.nowLiquid) {
return 0 return 0
} }
const nl = roundNumber(Number((liquidInfo.value.nowLiquid / liquidTotal.value) * 100), 0)
return nl
return roundNumber(Number((liquidInfo.value.nowLiquid / liquidTotal.value) * 100), 0)
}) })
// //

Loading…
Cancel
Save