迁移AI小班长聊天脚本

This commit is contained in:
2026-04-25 13:58:40 +08:00
parent ed2d60a24e
commit 136240e5e1
4 changed files with 149 additions and 86 deletions
@@ -47,6 +47,8 @@
// 暂时暴露给已迁移的手机抽屉 Vite 模块读取,后续在线名单整体迁移后可移除。
window.onlineUsers = onlineUsers;
let autoScroll = true;
// 给已迁移到 Vite 的模块只读判断自动滚动状态,避免直接依赖 Blade 脚本作用域。
window.isChatAutoScrollEnabled = () => autoScroll;
let userBadgeRotationTick = 0;
let userListRenderTimer = null;
let _maxMsgId = 0; // 记录当前收到的最大消息 ID