mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-12 20:27:11 +00:00
修复删除最后一个列表数据,重新加载数据报错
This commit is contained in:
@@ -125,7 +125,7 @@ export default {
|
||||
type: "success",
|
||||
message: ""
|
||||
});
|
||||
if (this.tableData.length == 1) {
|
||||
if (this.tableData.length == 1 && this.page > 1 ) {
|
||||
this.page--;
|
||||
}
|
||||
this.getTableData();
|
||||
|
||||
@@ -116,7 +116,7 @@ export default {
|
||||
type: "success",
|
||||
message: "删除成功!"
|
||||
});
|
||||
if (this.tableData.length == 1) {
|
||||
if (this.tableData.length == 1 && this.page > 1 ) {
|
||||
this.page--;
|
||||
}
|
||||
this.getTableData();
|
||||
|
||||
Reference in New Issue
Block a user