From f78bded54f99dadeaea3dee16a80a4fc7b462442 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 18 Mar 2026 18:19:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20hover=20=E5=88=B0=E6=97=A0=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=86=85=E5=AE=B9=E7=9A=84=E5=AF=BC=E8=88=AA=E9=A1=B9?= =?UTF-8?q?=E6=97=B6=E6=94=B6=E8=B5=B7=E4=B9=8B=E5=89=8D=E6=89=93=E5=BC=80?= =?UTF-8?q?=E7=9A=84=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/common.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/common.js b/common/common.js index e163b51..bc7e592 100644 --- a/common/common.js +++ b/common/common.js @@ -164,6 +164,12 @@ $(function () { }); showIndex = index; + } else { + // 当前导航项没有下拉内容,收起之前打开的面板 + $(".nav-cont").css("height", "0"); + setTimeout(() => { + $(".nav-cont .nav-cont-menu").css("display", "none"); + }, 300); } }, 150); },