fix(api): add asyn await for the effect

This commit is contained in:
2026-03-19 11:03:04 +07:00
parent 517661a237
commit ea3e748684

View File

@@ -15,9 +15,10 @@ const IndexWebControl = memo(function IndexWebControl() {
const url = "https://117.102.231.130:9531/qrview"; const url = "https://117.102.231.130:9531/qrview";
const handleReset = () => { const handleReset = async() => {
setIsPlaying(false); setIsPlaying(false);
resetWA(); await resetWA();
setIsPlaying(true);
}; };
useEffect(() => { useEffect(() => {