fix: 列表当前页被删除空后页码减一
This commit is contained in:
@@ -836,6 +836,14 @@
|
||||
});
|
||||
}
|
||||
},
|
||||
endpointTableData: {
|
||||
deep: true,
|
||||
handler(n) {
|
||||
if (n.length === 0 && this.endpointPageObj.pageNo > 1) {
|
||||
this.endpointPageNo(this.endpointPageObj.pageNo-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
bus.$off("project-page-type");
|
||||
|
||||
Reference in New Issue
Block a user