This is an automated email from the ASF dual-hosted git repository.

wuweijie pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new b887fad  fix(registryCenter): pagination (#158)
b887fad is described below

commit b887fad0da852d2a845d2bf7ab7a9644fcc52a54
Author: zhiyuc <[email protected]>
AuthorDate: Mon Jul 4 11:00:27 2022 +0800

    fix(registryCenter): pagination (#158)
---
 .../src/views/registry-center/module/registryCenter.vue                 | 2 +-
 .../src/views/registry-center/module/registryCenter.vue                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/module/registryCenter.vue
 
b/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/module/registryCenter.vue
index f77a6c8..9d65cbd 100644
--- 
a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/module/registryCenter.vue
+++ 
b/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/module/registryCenter.vue
@@ -196,7 +196,7 @@ export default {
     ...mapActions(['setRegCenterActivated']),
     handleCurrentChange(val) {
       const data = clone(this.cloneTableData)
-      this.tableData = data.splice(val - 1, this.pageSize)
+      this.tableData = data.splice((val - 1) * this.pageSize, this.pageSize)
     },
     getRegCenter() {
       API.getRegCenter().then(res => {
diff --git 
a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/module/registryCenter.vue
 
b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/module/registryCenter.vue
index 90276eb..f972fbe 100644
--- 
a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/module/registryCenter.vue
+++ 
b/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/module/registryCenter.vue
@@ -196,7 +196,7 @@ export default {
     ...mapActions(['setRegCenterActivated']),
     handleCurrentChange(val) {
       const data = clone(this.cloneTableData)
-      this.tableData = data.splice(val - 1, this.pageSize)
+      this.tableData = data.splice((val - 1) * this.pageSize, this.pageSize)
     },
     getRegCenter() {
       API.getRegCenter().then(res => {

Reply via email to