Browse Source

优化电量低于20时的问题

master
LiLongLong 4 months ago
parent
commit
70deeca612
  1. BIN
      build.zip
  2. 8
      src/pages/Measure.tsx

BIN
build.zip

8
src/pages/Measure.tsx

@ -114,10 +114,6 @@ 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: '蓝牙未连接,请先连接蓝牙',
@ -145,6 +141,10 @@ export default function Measure() {
});
return;
}
// if (contextState.device.power < 20) {
// Toast.show("电量低于20%,请充电后测量");
// return;
// }
Bridge.startMeasure().then((res) => {
if (res.success) {
dispatch(updateTaskState('START_RECORD_SIG'));

Loading…
Cancel
Save