From 7d0296dedb2aaa00041140ad9a4bb0253aacabcc Mon Sep 17 00:00:00 2001
From: sexygoat <1538832180@qq.com>
Date: Thu, 30 Apr 2026 17:01:26 +0800
Subject: [PATCH] fix: singer
---
components/DeviceStatusCard.vue | 13 +++++++++++--
pages/index/index.vue | 13 -------------
pages/login/login.vue | 4 ++--
3 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/components/DeviceStatusCard.vue b/components/DeviceStatusCard.vue
index 32408cb..0f3c83a 100644
--- a/components/DeviceStatusCard.vue
+++ b/components/DeviceStatusCard.vue
@@ -24,7 +24,7 @@
- 信号强度
+ 信号判断
{{ deviceInfo.signal_quality || '暂无数据' }}
@@ -36,7 +36,7 @@
{{ deviceInfo.connCnt }}/{{ deviceInfo.max_clients }}
-
+
怀疑原因:
{{ deviceInfo.signal_bad_reason }}
@@ -52,6 +52,10 @@
});
defineEmits(['authentication']);
+
+ const shouldShowSignalReason = (deviceInfo) =>
+ ['信号较弱', '信号很差', '暂无数据'].includes(deviceInfo?.signal_quality) &&
+ !!deviceInfo?.signal_bad_reason;