Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
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