Browse Source

蓝牙扫瞄逻辑变更

master
zhangjiming 4 months ago
parent
commit
259939020f
  1. 5
      src/pages/Bluetooth.tsx

5
src/pages/Bluetooth.tsx

@ -38,6 +38,9 @@ export default function Bluetooth() {
}
});
};
function scanning() {
return <div className='flex items-center gap-x-3'><p></p><SpinLoading /></div>
}
return (
<div>
<NavBar className="bg-white" back={null}>
@ -47,7 +50,7 @@ export default function Bluetooth() {
<section>
<div className="h-[42px] px-5 flex items-center justify-between">
<h1 className="h-[42px] leading-[42px] text-base text-text font-medium"></h1>
<SpinLoading />
{contextState.bleList.some((bl) => bl.linked) ? undefined : scanning()}
</div>
<div className="bg-white px-5 text-sm text-text">
{contextState.bleList.map((ble) => (

Loading…
Cancel
Save