From 803b4600de0784b3b02ea3e594c2e38c13cc0bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Wed, 2 Jul 2025 20:57:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=8E=E6=88=90=E6=9C=AC=E6=B6=88=E6=AF=92?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8C=87=E4=BB=A4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/HomeOperation.vue | 1 - src/components/home/HomeSetting.vue | 5 ++++- src/views/home/index.vue | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/home/HomeOperation.vue b/src/components/home/HomeOperation.vue index b2d20ae..24436c6 100644 --- a/src/components/home/HomeOperation.vue +++ b/src/components/home/HomeOperation.vue @@ -55,7 +55,6 @@ watchEffect(() => { /** * @hook 生命周期钩子 - 组件挂载完成时执行 - * @description 订阅消毒状态更新事件 */ onMounted(async () => { }) diff --git a/src/components/home/HomeSetting.vue b/src/components/home/HomeSetting.vue index 7b703df..63aa3fa 100644 --- a/src/components/home/HomeSetting.vue +++ b/src/components/home/HomeSetting.vue @@ -57,7 +57,10 @@ watchEffect(() => { * @description 初始化压力配置 */ onMounted(async () => { - await getPressureConfig() // 获取压力配置 + const deviceInfo: Device.DeviceInfo = deviceStore.deviceInfo + if (deviceInfo.deviceType !== useDeviceStore().deviceTypeMap.LargeSpaceDM_B) { + await getPressureConfig() // 获取压力配置 + } }) /** diff --git a/src/views/home/index.vue b/src/views/home/index.vue index bde1bf6..82206de 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -77,8 +77,7 @@ const nowLiquidProgress = computed(() => { if (!liquidInfo.value.nowLiquid) { 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) }) // 当前消毒液余量