优化问题件搜索等

This commit is contained in:
mengxiaolong
2020-08-10 09:47:00 +08:00
parent 56133476fb
commit 5acefd3ce6
2 changed files with 31 additions and 11 deletions

View File

@@ -206,10 +206,16 @@ export default {
this.loadMore()
},
async searchProblems() {
// 每次搜索查询第一页
this.currentPage = 1
// 开启loading, 复位finished
if (this.active === 0) {
this.pendingListLoading = true
this.pendingListFinished = false
this.pendingList.splice(0)
} else {
this.processedListLoading = true
this.processedListFinished = false
this.processedList.splice(0)
}
this.loadMore()