[Fix][Project List UI] Fix the calling interface that keeps decreasing by one after manually setting the `pageNo` parameter. (#7413)

This commit is contained in:
songjianet 2021-12-14 22:01:03 +08:00 committed by GitHub
parent 533a89c5e1
commit 49089d3dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@
this.isLoading = !flag
this.getProjectsList(this.searchParams).then(res => {
if (this.searchParams.pageNo > 1 && res.totalList.length === 0) {
this.searchParams.pageNo = this.searchParams.pageNo - 1
this.searchParams.pageNo = 1
} else {
this.projectsList = []
this.projectsList = res.totalList