fix: 列表当前页被删除空后页码减一
This commit is contained in:
@@ -365,6 +365,14 @@
|
||||
let vm = this;
|
||||
this.$bottomBoxWindow.showSubListWatch(vm, n);
|
||||
},
|
||||
tableData: {
|
||||
deep: true,
|
||||
handler(n) {
|
||||
if (n.length === 0 && this.pageObj.pageNo > 1) {
|
||||
this.pageNo(this.pageObj.pageNo-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.scrollbarWrap.removeEventListener('scroll', bus.debounce);
|
||||
|
||||
Reference in New Issue
Block a user