fix(notice): 修复铃铛轮询时机/个人消息接口地址/订阅保存地址与详情接收时间

This commit is contained in:
augushong
2026-10-12 14:34:33 +00:00
parent aee34dc283
commit 710ce97473
4 changed files with 13 additions and 7 deletions

View File

@@ -53,6 +53,10 @@ function initUnreadPolling() {
setInterval(fetchUnreadCount, pollInterval);
}
if (window.pageType === 'index') {
initUnreadPolling();
}
// content_js 注入时机早于顶栏 DOM 就绪,必须等 DOM ready 再捕获 #ua-notice-unread,
// 否则闭包固化空 jQuery 集合,text/show 静默 no-op,badge 永不显示
$(function () {
if (window.pageType === 'index') {
initUnreadPolling();
}
});