From 6316a30be7f053c9584613ff3fa4a6f0c5feedbe Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sun, 1 Mar 2026 13:01:15 +0800 Subject: [PATCH] refactor: remove unnecessary arrow functions --- app/components/ScrollToTop.client.vue | 2 +- app/pages/package/[[org]]/[name].vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/ScrollToTop.client.vue b/app/components/ScrollToTop.client.vue index f09c13f2d0..dda52dc90b 100644 --- a/app/components/ScrollToTop.client.vue +++ b/app/components/ScrollToTop.client.vue @@ -50,7 +50,7 @@ const shouldShowButton = computed(() => isActive.value && isTouchDeviceClient.va type="button" class="fixed bottom-4 inset-ie-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95" :aria-label="$t('common.scroll_to_top')" - @click="() => scrollToTop()" + @click="scrollToTop" >