From 06bf5c1ff1b52bc1eb72d7a3358995470ff3a97c Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 6 Jul 2023 06:43:05 +0000 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20In=20MkPagination,=20init()=20?= =?UTF-8?q?also=20initializes=20items=20=E3=83=A6=E3=83=BC=E3=82=B6?= =?UTF-8?q?=E3=83=BC=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AE=E3=83=8E=E3=83=BC?= =?UTF-8?q?=E3=83=88=E3=82=BF=E3=83=96=E3=81=A7=E5=B0=8F=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=99=E3=82=8B=E3=81=A8=E5=89=8D?= =?UTF-8?q?=E3=81=AE=E3=82=BF=E3=82=A4=E3=83=A0=E3=83=A9=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=81=8C=E6=AE=8B=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkPagination.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index b361d568e..661b04c36 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -188,6 +188,7 @@ watch(queue, (a, b) => { }, { deep: true }); async function init(): Promise { + items.value = new Map(); queue.value = new Map(); fetching.value = true; const params = props.pagination.params ? isRef(props.pagination.params) ? props.pagination.params.value : props.pagination.params : {}; @@ -219,8 +220,6 @@ async function init(): Promise { } const reload = (): Promise => { - items.value = new Map(); - queue.value = new Map(); return init(); };