From f36e617e9e534a4b05f2029724d678bbd6c655b3 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 22 十二月 2021 11:38:54 +0800
Subject: [PATCH] refactor: separate api/consultant.ts into serveral services

---
 PAMapp/components/Ui/UiPagination.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/PAMapp/components/Ui/UiPagination.vue b/PAMapp/components/Ui/UiPagination.vue
index 822d0de..abb27a9 100644
--- a/PAMapp/components/Ui/UiPagination.vue
+++ b/PAMapp/components/Ui/UiPagination.vue
@@ -12,7 +12,7 @@
 
 <script lang="ts">
 import { Vue, Component, Prop, Emit, Watch } from 'nuxt-property-decorator';
-import { Consultant } from '~/assets/ts/models/consultant.model';
+import { Consultant } from '~/shared/models/consultant.model';
 
 @Component
 export default class UiPagination extends 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