pas besoin de ce watch, on a deja un computed
This commit is contained in:
parent
d28740005b
commit
9ef6927b91
2 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue