修复 修改mac地址后发送启动请求 mac地址还是修改前的

This commit is contained in:
giaogiao 2023-09-27 17:24:02 +08:00
parent 53aeb219cb
commit 2534935e8d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default function WolItem(props) {
return;
}
socket.sendMessage('start', {mac}, function () { toast.success('已经发送') })
}, []);
}, mac);
const deleteItem = useCallback(() => {
// socket.sendMessage('del', {id}, function () { updata() })
socket.sendMessage('del', {id}, function () { dispatch(delitem(id));socket.sendMessage('getall', '', function (eve) { dispatch(wolupdata(eve.data[0]));handleOpen() }) })