From d4df750ec9fcb3eb08e23a875ae458a9ff25e454 Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Wed, 16 Apr 2025 11:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E9=87=8F=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Measure.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Measure.tsx b/src/pages/Measure.tsx index 8c77c60..694494b 100644 --- a/src/pages/Measure.tsx +++ b/src/pages/Measure.tsx @@ -113,6 +113,10 @@ export default function Measure() { const onStartClick = () => { setshowCalibration(false) dispatch(updateMeasureData([])) + if (contextState.device.power < 20) { + Toast.show("电量低于20%,请充电后测量"); + return; + } if (!contextState.device.connected) { Dialog.alert({ content: '蓝牙未连接,请先连接蓝牙',