covas-bo/web/js/home.js

15 lines
404 B
JavaScript
Raw Normal View History

checkToken();
2022-07-26 00:08:33 +02:00
axios.interceptors.request.use(function (config) {
checkToken();
2022-07-26 00:08:33 +02:00
return config;
}, function (error) {
// Do something with request error
return Promise.reject(error);
});
2022-07-26 00:08:33 +02:00
instance.get("users/count", { withCredentials: true }).then(function(response){
2022-07-26 00:18:42 +02:00
var countTable = document.getElementById("users").querySelector("tbody").querySelectorAll("tr").length;
2022-07-26 00:08:33 +02:00
})