From 1056380733b55a5123442c07a6f983a93f37d0cd Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 3 Feb 2022 05:17:06 +0900 Subject: [PATCH] clena up --- packages/client/src/components/ui/pagination.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/client/src/components/ui/pagination.vue b/packages/client/src/components/ui/pagination.vue index e98fc9c3c..469228e91 100644 --- a/packages/client/src/components/ui/pagination.vue +++ b/packages/client/src/components/ui/pagination.vue @@ -117,8 +117,6 @@ const { enableInfiniteScroll } = defaultStore.reactiveState; -let mounted = $ref(false); - const contentEl = $computed(() => props.pagination.pageEl || rootEl); const scrollableElement = $computed(() => getScrollContainer(contentEl)); @@ -136,7 +134,6 @@ watch(items, observeLatestElement, { deep: true }); function observeLatestElement() { observer.disconnect(); nextTick(() => { - if (!mounted) return; const latestEl = (itemsContainer || rootEl)?.children.item(0); if (latestEl) observer.observe(latestEl); }); @@ -348,8 +345,6 @@ function toBottom() { } onMounted(() => { - mounted = true; - inited.then(() => { if (props.pagination.reversed) { nextTick(() => {