mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-19 08:03:14 +08:00
device-dashboard: fixed event table POST request
This commit is contained in:
parent
5c87f2f22c
commit
c63135ec7f
@ -55,15 +55,8 @@ function Events({}) {
|
||||
const [page, setPage] = useState(1);
|
||||
|
||||
const refresh = () =>
|
||||
fetch('/api/events/get',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
page: page
|
||||
}),
|
||||
fetch('/api/events/get', {
|
||||
method: 'POST', body: JSON.stringify({page: page}),
|
||||
}).then(r => r.json())
|
||||
.then(r => setEvents(r));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user