some bug fixed

This commit is contained in:
wt committed 2024-05-24 15:46:22 +07:00
1 parent e310ed83b7
commit bff7788c70
8 files changed
+39 -18

No files matched your search

+3 -2
View File
@@ -2,8 +2,9 @@ const get_all_users = async () => {
const response = await fetch(routes.all_users(), {
method: "POST",
body: `{"token":"${localStorage.getItem("token")}"}`
}).then(data => data.json()).then(jsondata => jsondata)
console.log(response)
}).then(data => data.json()).then(jsondata => jsondata).catch((error) => {
notification(`Ошибка на сервере: ${error}`, "error")
})
const alluserstablebody = document.querySelector('.alluserstablebody')
alluserstablebody.innerHTML = ""
for (const user of response) {