add count
This commit is contained in:
parent
03ec97003e
commit
319ba75d43
@ -30,8 +30,8 @@ for (var i=0; i<listQuery.length; i++){
|
||||
|
||||
instance.get("users/count", { withCredentials: true }).then(function(response){
|
||||
|
||||
var count = response.data / param["nbPages"];
|
||||
var reste = response.data % param["nbPages"];
|
||||
var count = response.data["count"] / param["nbPages"];
|
||||
var reste = response.data["count"] % param["nbPages"];
|
||||
var total = 0;
|
||||
if(reste != 0){
|
||||
total = Number.parseInt(count) + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user