From 98f2c88113b8fcf4405115849e8a2ca51d092199 Mon Sep 17 00:00:00 2001 From: luojiayi <1712054227@qq.com> Date: Tue, 20 May 2025 09:12:08 +0800 Subject: [PATCH] =?UTF-8?q?2025=E5=B9=B405=E6=9C=8820=E6=97=A509:12:05?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index 15ec0cc..90d326c 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -29,7 +29,7 @@ export default function Index() { AI: 0, //AI playPause: 0, //播放暂停 }) - let timeout = null + // let timeout = null const musicModeEnum = ['标准', '动感', '轻柔', '安静'] @@ -40,12 +40,12 @@ export default function Index() { BLESDK.writeBleValue(new Uint8Array(strInsert(e)).buffer) }), []) const refresh = () => { - clearTimeout(timeout) + // clearTimeout(timeout) if (BLESDK.deviceInfo.state) { getInitData() - timeout = setTimeout(() => { - refresh() - }, 3000) + // timeout = setTimeout(() => { + // refresh() + // }, 3000) } } @@ -148,7 +148,7 @@ export default function Index() { refresh() }) useDidHide(() => { - clearTimeout(timeout) + // clearTimeout(timeout) }) return (