✨ feat(im): 优化整体 message 包结构

pull/881/head
YunaiV 2026-04-28 09:30:12 +08:00
parent 29a03ef03d
commit ba34e4adc0
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<ToolBar />
<!--
keep-alive 缓存子页面:
- 切 Tab 不重建组件,ChatPanel 滚动位置、输入框草稿等 UI 状态不丢
- 切 Tab 不重建组件,MessagePanel 滚动位置、输入框草稿等 UI 状态不丢
- Vue 3 里 keep-alive 不能直接包 <router-view>(会有警告),必须走 v-slot 拿 Component
-->
<router-view v-slot="{ Component }">

View File

@ -21,7 +21,7 @@ import type { Group, GroupMember } from '../types'
*
* 负责:
* - 拉取 / 缓存当前登录用户加入的群列表
* - 按 groupId 懒加载群成员(供 ChatGroupSide / MentionPicker / MessageReadStatus 消费)
* - 按 groupId 懒加载群成员(供 ConversationGroupSide / MentionPicker / MessageReadStatus 消费)
* - 成员"已读 / 未读"等聚合查询由 MessageReadStatus 另行组合
*/
export const useGroupStore = defineStore('imGroupStore', {