fix(fsys): 层级切换后重置页面滚动位置到顶部

This commit is contained in:
qing committed 2026-08-20 08:27:06 +00:00
1 parent d4e627fbb2
commit 38be729509
1 file changed
+2
+2
View File
@@ -1075,6 +1075,8 @@ function load_notes(main_node) {
renderCards(current_children); renderCards(current_children);
inheritThemeStyle(); inheritThemeStyle();
updateDeleteBtnVisibility(); updateDeleteBtnVisibility();
/* 层级切换后回到页面顶部,避免滚动条停留在上一层的深度 */
window.scrollTo(0, 0);
}; };
/* 对 __ 隐藏节点应用特效(注入 CSS / 运行 js),卡片不渲染 */ /* 对 __ 隐藏节点应用特效(注入 CSS / 运行 js),卡片不渲染 */