mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-09 20:40:49 +08:00
fix(notice): 修复铃铛轮询时机/个人消息接口地址/订阅保存地址与详情接收时间
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user