From 58759f1821369d6d7e98a4f262c127f34b7ed776 Mon Sep 17 00:00:00 2001 From: Rieko-wang Date: Wed, 7 Dec 2022 13:25:36 +0800 Subject: [PATCH] 123 --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a350e5a..01e933e 100644 --- a/index.html +++ b/index.html @@ -138,11 +138,11 @@ hideLoading(); renderBillingDom([]) $('.loading').show(); + $('.filter-item').removeClass('active'); + const key = $(this).attr('data-query-key'); + $(this).addClass('active') const timer = setTimeout(() => { clearTimeout(timer) - $('.filter-item').removeClass('active'); - const key = $(this).attr('data-query-key'); - $(this).addClass('active') if (key === 'nearlyMonth') { renderBillingDom(nearlyMonth) } else if (key === 'lastThreeMonths') {