修复部分场景下文档右侧目录高度不能正确读取的问题

This commit is contained in:
click33 2024-07-30 15:29:05 +08:00
parent d62cdc79e0
commit 93a03c92e3

View File

@ -30,7 +30,8 @@ function subNavDraw(hook, vm) {
// 修改高度
const $dom = $('.app-sub-sidebar');
$('.doc-right-more-item').css({ top: ($dom.height() + 80) + 'px' })
console.log($dom, $dom.height());
$('.doc-right-more-item').css({ top: (($dom.height() ?? 0) + 80) + 'px' })
// 重新定位 active-rep 对应的菜单
positioningVmActiveRep(vm);