修复 修改mac地址后发送启动请求 mac地址还是修改前的
This commit is contained in:
parent
53aeb219cb
commit
2534935e8d
|
@ -34,7 +34,7 @@ export default function WolItem(props) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
socket.sendMessage('start', {mac}, function () { toast.success('已经发送') })
|
socket.sendMessage('start', {mac}, function () { toast.success('已经发送') })
|
||||||
}, []);
|
}, mac);
|
||||||
const deleteItem = useCallback(() => {
|
const deleteItem = useCallback(() => {
|
||||||
// socket.sendMessage('del', {id}, function () { updata() })
|
// 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() }) })
|
socket.sendMessage('del', {id}, function () { dispatch(delitem(id));socket.sendMessage('getall', '', function (eve) { dispatch(wolupdata(eve.data[0]));handleOpen() }) })
|
||||||
|
|
Loading…
Reference in New Issue