From 95d0e5524c3ab1e55a9909e2c38e7cc35901220f Mon Sep 17 00:00:00 2001 From: 劉鈞霖 <benson@gmail.com> Date: 星期三, 15 十二月 2021 14:52:58 +0800 Subject: [PATCH] [ Update ] :新增 pamService class 將 consultant interface 移出 --- PAMapp/components/Ui/UiPagination.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/Ui/UiPagination.vue b/PAMapp/components/Ui/UiPagination.vue index 822d0de..40f2709 100644 --- a/PAMapp/components/Ui/UiPagination.vue +++ b/PAMapp/components/Ui/UiPagination.vue @@ -25,7 +25,7 @@ this.handleCurrentChange(this.currentPage); } - @Emit('changePage') chagnePage(): Consultant[] { + @Emit('changePage') changePage(): Consultant[] { return this.pageList } @@ -37,14 +37,14 @@ if (this.totalList) { this.pageList = this.totalList.slice(this.pageSize * currentPage - this.pageSize, this.pageSize * currentPage) - this.chagnePage(); + this.changePage(); } } - @Watch('totalList') watchtotalList(newValue: Consultant[]) { + @Watch('totalList') watchTotalList(newValue: Consultant[]) { if (newValue) { this.handleCurrentChange(this.currentPage); } } } -</script> \ No newline at end of file +</script> -- Gitblit v1.8.0