From 5a2990a2fa7418f3d6797de6aaaaed5f976ffa63 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Thu, 19 Jan 2023 18:28:07 +0100 Subject: [PATCH] wip --- .../client/src/components/MkPagination.vue | 5 +++++ packages/client/src/pages/messaging/index.vue | 20 +++---------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/packages/client/src/components/MkPagination.vue b/packages/client/src/components/MkPagination.vue index c262ee931c..d98fc7252e 100644 --- a/packages/client/src/components/MkPagination.vue +++ b/packages/client/src/components/MkPagination.vue @@ -90,6 +90,7 @@ const backed = ref(false); // 遡り中か否か const isBackTop = ref(false); const empty = computed(() => items.value.length === 0); const error = ref(false); +const alreadyInitedOnce = ref(false); const init = async (): Promise => { queue.value = []; @@ -344,10 +345,14 @@ init(); onActivated(() => { isBackTop.value = false; + if(alreadyInitedOnce.value) { + reload(); + } }); onDeactivated(() => { isBackTop.value = window.scrollY === 0; + alreadyInitedOnce.value = true; }); defineExpose({ diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index a614085f64..3866db1c77 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -13,7 +13,7 @@ {{ i18n.ts.startMessaging }} - + @@ -28,7 +28,7 @@ i18n.ts.startMessaging }} - + @@ -41,7 +41,7 @@