fix(api): add asyn await for the effect
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user