迁移聊天室本地清屏入口

This commit is contained in:
2026-04-25 19:38:58 +08:00
parent 36ac9d090b
commit 0ac12364bb
4 changed files with 74 additions and 11 deletions
@@ -296,6 +296,20 @@ export function toggleBlockMenu(event = null, beforeToggle = undefined) {
menu.style.display = menu.style.display === "none" ? "block" : "none";
}
/**
* 执行功能菜单里的本地清屏动作,并在执行前关闭菜单。
*
* @param {() => void} onLocalClear 本地清屏回调
* @returns {void}
*/
export function handleFeatureLocalClear(onLocalClear) {
closeFeatureMenu();
if (typeof onLocalClear === "function") {
onLocalClear();
}
}
/**
* 绑定功能菜单、每日状态编辑与系统播报屏蔽的统一事件代理。
*