fix(api): add api for reset web and WA update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { useState, useEffect, memo } from 'react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { Button, Typography } from 'antd';
|
||||
import { resetWA } from '../../api/web-control';
|
||||
import { useBreadcrumb } from '../../layout/LayoutBreadcrumb';
|
||||
|
||||
const { Text } = Typography;
|
||||
@@ -19,6 +20,7 @@ const IndexWebControl = memo(function IndexWebControl() {
|
||||
|
||||
const handleReset = () => {
|
||||
setIsPlaying(false);
|
||||
resetWA();
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user