|
@@ -145,7 +145,7 @@ export default {
|
|
|
this.localPagination.pageSize
|
|
|
})
|
|
|
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
|
|
|
- if (r.data.length === 0 && this.localPagination.current !== 1) {
|
|
|
+ if (r.data.length === 0 && this.localPagination.current > 1) {
|
|
|
this.localPagination.current--
|
|
|
this.loadData()
|
|
|
return
|