[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:
parent
533a89c5e1
commit
49089d3dc1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue