fix(api): add api for reset web and WA update

This commit is contained in:
2026-03-16 14:54:00 +07:00
parent 986026c3af
commit 9e3ad19591
2 changed files with 16 additions and 0 deletions

View File

@@ -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(() => {