fix: hover 到无下拉内容的导航项时收起之前打开的面板
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2026-03-18 18:19:46 +08:00
parent 40a5364c17
commit f78bded54f

View File

@@ -164,6 +164,12 @@ $(function () {
}); });
showIndex = index; showIndex = index;
} else {
// 当前导航项没有下拉内容,收起之前打开的面板
$(".nav-cont").css("height", "0");
setTimeout(() => {
$(".nav-cont .nav-cont-menu").css("display", "none");
}, 300);
} }
}, 150); }, 150);
}, },