feat(msg): 「按应用」清单接真实数据——GetUserApp 应用全集 + 按应用未读数角标
build / build (push) Successful in 1m59s

- 应用清单改与桌面网格同源 GetUserApp(BoaApp 自带 appKey/name):原实现读 store.getFlattenAppList,但 setApps 无调用方、列表恒空,且 MenuBar 本身无 appKey 字段——「按应用」此前只剩「全部」一行
- 角标接新代理端点 msgCenter/unreadCountByApp({appKey: 未读数}),未读多的应用排前,替代原 summary.todos 待办数语义
- 卡片 appName 缺失降级改同源匹配用户应用清单
This commit is contained in:
chenxing
2026-10-08 12:00:05 +08:00
parent 19e1bbc9d7
commit 297934f862
2 changed files with 51 additions and 21 deletions
+9
View File
@@ -134,6 +134,15 @@ class Base extends Abstract {
}>({ url });
}
/**
* 消息中心:按来源应用未读数映射(「按应用」清单角标):{appKey: 未读数},无未读的 appKey 不出现
* @memberof Basic
*/
getMsgCenterUnreadCountByApp() {
const url = path + "/msgCenter/unreadCountByApp";
return this.getRequest<Record<string, number>>({ url });
}
/**
* WS 实时推送握手地址(UserMsg 一次性票据;url=null 表示未配置/不可达,走手动刷新兜底)
* @memberof Basic