diff --git a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue index 60f3f2f263..73cfa1bf2f 100644 --- a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue +++ b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue @@ -178,7 +178,7 @@ export default { homeTestPlanFailureCaseGet( this.projectId, this.pageSize, - this.currentPage + this.currentPage - 1 ) .then((r) => { this.loading = false; diff --git a/test-track/frontend/src/business/home/components/pagination/HomePagination.vue b/test-track/frontend/src/business/home/components/pagination/HomePagination.vue index eb4773c7b0..70199edf8e 100644 --- a/test-track/frontend/src/business/home/components/pagination/HomePagination.vue +++ b/test-track/frontend/src/business/home/components/pagination/HomePagination.vue @@ -48,14 +48,29 @@ export default { }, change: Function }, + data() { + return { + timer: null + }; + }, methods: { handleSizeChange: function (size) { - this.$emit('update:pageSize', size) - this.change(); + this.$emit('update:pageSize', size); + if (this.timer === null) { + this.timer = setTimeout(() => { + this.change(); + this.timer = null; + }, 0); + } }, handleCurrentChange(current) { - this.$emit('update:currentPage', current) - this.change(); + this.$emit('update:currentPage', current); + if (this.timer === null) { + this.timer = setTimeout(() => { + this.change(); + this.timer = null; + }, 0); + } } } }