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); },