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();