From 0601353fb5bd0e32ae9e1ba86607a2dcd0d2702e Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 16 Feb 2024 16:20:18 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89=E0=B8=88?= =?UTF-8?q?=E0=B8=B3=E0=B8=99=E0=B8=A7=E0=B8=99=E0=B9=81=E0=B8=AA=E0=B8=94?= =?UTF-8?q?=E0=B8=87=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../00_support/components/FormChat.vue | 51 ++----------------- src/modules/00_support/store/Main.ts | 3 +- 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/src/modules/00_support/components/FormChat.vue b/src/modules/00_support/components/FormChat.vue index e14ad797a..f5ebd2b01 100644 --- a/src/modules/00_support/components/FormChat.vue +++ b/src/modules/00_support/components/FormChat.vue @@ -16,7 +16,7 @@ const { scrollContainer } = storeToRefs(store); onMounted(async () => { await store.fetchIssue(); - totalPageIssue.value = Math.ceil((store.currentTotalIssue || 0) / 6); + totalPageIssue.value = Math.ceil((store.currentTotalIssue || 0) / 30); }); const onLoad = (async (_: any, done: any) => { @@ -89,54 +89,11 @@ const onLoad = (async (_: any, done: any) => { - - -
+
{ async function fetchIssue(page: number = 1) { showLoader(); const res = await http - .get(`${config.API.supportIssue}?page=${page}&pageSize=6`) + .get(`${config.API.supportIssue}?page=${page}&pageSize=30`) .catch((err) => { messageError($q, err); })