From c6e53ac6dfd3807daa45a643dd4baadb0d307771 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 21 Jun 2023 12:35:13 +0800 Subject: [PATCH] add txs --- .../[chain]/ibc/connection/[connection_id].vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/[chain]/ibc/connection/[connection_id].vue b/src/modules/[chain]/ibc/connection/[connection_id].vue index c7109445..218f3c51 100644 --- a/src/modules/[chain]/ibc/connection/[connection_id].vue +++ b/src/modules/[chain]/ibc/connection/[connection_id].vue @@ -52,16 +52,17 @@ function loadChannel(channel: string, port: string) { } function pageload(pageNum: number) { - page.value.setPage(pageNum) if (direction.value === 'In') { - fetchSendingTxs(channel_id.value, port_id.value) + fetchSendingTxs(channel_id.value, port_id.value, pageNum) } else { - fetchSendingTxs(channel_id.value, port_id.value) + fetchSendingTxs(channel_id.value, port_id.value, pageNum) } } -function fetchSendingTxs(channel: string, port: string) { +function fetchSendingTxs(channel: string, port: string, pageNum = 0) { + + page.value.setPage(pageNum) loading.value = true direction.value = 'Out' channel_id.value = channel @@ -72,7 +73,8 @@ function fetchSendingTxs(channel: string, port: string) { }) .finally(() => loading.value = false) } -function fetchRecevingTxs(channel: string, port: string) { +function fetchRecevingTxs(channel: string, port: string, pageNum = 0) { + page.value.setPage(pageNum) loading.value = true direction.value = 'In' channel_id.value = channel