From a449a7da7711cba9d86fe65fa9bdafe52b50bb3f Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 10 Apr 2025 09:43:28 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomNavBar.tsx | 8 ++++---- src/pages/MeasurementList.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/CustomNavBar.tsx b/src/components/CustomNavBar.tsx index 7d04842..5a7ff24 100644 --- a/src/components/CustomNavBar.tsx +++ b/src/components/CustomNavBar.tsx @@ -14,12 +14,12 @@ export default function CustomNavBar({ title }: { title: string }) {
{/** 温度,水平仪 */}
- 温度: {device.temperature}°C - X轴倾斜: {device.inclinatorX} - Y轴倾斜: {device.inclinatorY} + 温度: {device.temperature.toFixed(1)}°C + X轴倾斜: {device.inclinatorX.toFixed(2)} + Y轴倾斜: {device.inclinatorY.toFixed(2)}
{/** 导航栏 */}
diff --git a/src/pages/MeasurementList.tsx b/src/pages/MeasurementList.tsx index 2f890f4..f6164cd 100644 --- a/src/pages/MeasurementList.tsx +++ b/src/pages/MeasurementList.tsx @@ -4,7 +4,7 @@ import MeasureGroups from '../components/MeasureGroups'; import { useCallback, useEffect, useState } from 'react'; import { Measurement } from '../services/apiTypes'; import * as R from 'ramda'; -import { MoreOutline, SearchOutline } from 'antd-mobile-icons'; +import { MoreOutline } from 'antd-mobile-icons'; import Bridge from '../utils/bridge'; const PAGE_SIZE = 10; @@ -92,7 +92,7 @@ export default function MeasurementList() { } } const onDeleteClick = async () => { - Dialog.confirm({ + await Dialog.confirm({ content: '确定是否删除?', onConfirm: () => { deleteRecords();