From 70c6756b72fee8a1faa992812d208a604376ffeb Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 7 Apr 2025 22:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E7=89=99=E5=88=97=E8=A1=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0mac=E5=9C=B0=E5=9D=80=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Bluetooth.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/pages/Bluetooth.tsx b/src/pages/Bluetooth.tsx index cacffd3..fe830c9 100644 --- a/src/pages/Bluetooth.tsx +++ b/src/pages/Bluetooth.tsx @@ -25,7 +25,7 @@ export default function Bluetooth() { if (!res.success) { Toast.show(res.message); } else { - dispatch(updateBleLinkStatus({mac, link: true})) + dispatch(updateBleLinkStatus({ mac, link: true })); } }); }; @@ -34,7 +34,7 @@ export default function Bluetooth() { if (!res.success) { Toast.show(res.message); } else { - dispatch(updateBleLinkStatus({mac, link: false})) + dispatch(updateBleLinkStatus({ mac, link: false })); } }); }; @@ -53,15 +53,19 @@ export default function Bluetooth() { {contextState.bleList.map((ble) => (
bl.linked) ? undefined : () => onConnect(ble.mac) } > - {ble.name} - {ble.linked ? '已连接' : ''} +
+

{ble.name}

+

{ble.mac}

+
+ + {ble.linked ? '已连接' : ''} {ble.linked && (