优化分页

master
yutent 2023-11-15 18:41:50 +08:00
parent d2ff91b761
commit bee6a247bc
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class Request extends Component {
this.list = this.#list
.filter(it => it.id.includes(filter) && (waited ? it.stat === 1 : true))
.slice(start, end)
this.total = this.list.length
this.total = (filter || waited ? this.list : this.#list).length
}
#pageChanged(ev) {