[WIP] Переход на страницу лоина, если токен просрочился
This commit is contained in:
@@ -138,12 +138,17 @@ export default {
|
||||
(this.currentTablePage - 1) * this.limit
|
||||
}`
|
||||
);
|
||||
this.saveDataClients(response);
|
||||
this.saveClientsCount(response);
|
||||
this.paginationInfo = {
|
||||
currentPage: this.currentTablePage,
|
||||
length: this.calculatePageCount(this.clientsCount),
|
||||
};
|
||||
if (response.type === "client_error") {
|
||||
localStorage.clear();
|
||||
this.$router.push("/login");
|
||||
} else {
|
||||
this.saveDataClients(response);
|
||||
this.saveClientsCount(response);
|
||||
this.paginationInfo = {
|
||||
currentPage: this.currentTablePage,
|
||||
length: this.calculatePageCount(this.clientsCount),
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
calculatePageCount(count) {
|
||||
|
||||
Reference in New Issue
Block a user