fix: hover 到无下拉内容的导航项时收起之前打开的面板
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user