fix: 列表当前页被删除空后页码减一

This commit is contained in:
陈劲松
2020-12-29 15:38:04 +08:00
committed by chenjinsong
parent af0561cabe
commit b2dd73c4fd
10 changed files with 84 additions and 0 deletions

View File

@@ -503,6 +503,14 @@
this.bottomBox.ruleDetail = this.convertToDetail(n);
}
},
tableData: {
deep: true,
handler(n) {
if (n.length === 0 && this.pageObj.pageNo > 1) {
this.pageNo(this.pageObj.pageNo-1);
}
}
}
},
beforeDestroy() {
bus.$off("alert-rule-list-change");