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 (