pas besoin de ce watch, on a deja un computed

This commit is contained in:
Christophe 2020-05-15 13:53:02 +02:00
parent d28740005b
commit 9ef6927b91
2 changed files with 3 additions and 6 deletions

View file

@ -161,6 +161,7 @@ let monTableau = {
},
computed: {
tableau: function () {
this.setPages();
if (!this.search) {
return this.pagination(this.table);
}
@ -177,9 +178,6 @@ let monTableau = {
},
},
watch: {
tableau() {
this.setPages();
},
parPageSelect(e) {
if (!parseInt(e)) {
this.parPage = this.table.length;

View file

@ -194,6 +194,8 @@ var monTableau = {
tableau: function tableau() {
var _this = this;
this.setPages();
if (!this.search) {
return this.pagination(this.table);
}
@ -204,9 +206,6 @@ var monTableau = {
}
},
watch: {
tableau: function tableau() {
this.setPages();
},
parPageSelect: function parPageSelect(e) {
if (!parseInt(e)) {
this.parPage = this.table.length;