add count client
This commit is contained in:
parent
59153ded4c
commit
e86a4aa0cf
@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
<h2>Section title</h2>
|
<h2>Section title</h2>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-sm">
|
<table id=users class="table table-striped table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">#</th>
|
<th scope="col">#</th>
|
||||||
|
@ -9,6 +9,7 @@ axios.interceptors.request.use(function (config) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
instance.get("users/count", { withCredentials: true }).then(function(response){
|
instance.get("users/count", { withCredentials: true }).then(function(response){
|
||||||
console.log(response.data);
|
var countTable = document.getElementById("users").querySelector("tbody").querySelectorAll("tr").length;
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
Loading…
x
Reference in New Issue
Block a user