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 handleReset = () => {
|
||||
const handleReset = async() => {
|
||||
setIsPlaying(false);
|
||||
resetWA();
|
||||
await resetWA();
|
||||
setIsPlaying(true);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user