feat(sdk): 更新 SDK 设计文档和 API 重构

- 添加 expiresAt 和 refreshUserSig 参数支持自动续签
- 修改 PushSDK 初始化方式,自动完成设备注册和厂商初始化
- 调整过期续签策略,从提前 15 分钟改为提前 5 分钟触发
- 重构 RN SDK 文档结构,简化安装和使用方式
- 更新统一登录流程,支持 profile 信息传递
- 添加 IM 数据库自动隔离功能
- 修复 Android 群消息聚合问题
- 补充自动化测试验证和错误处理机制
这个提交包含在:
徐勤民 2026-05-01 21:27:38 +08:00
父节点 22f4982de4
当前提交 b0e685d3f8
共有 2 个文件被更改,包括 7 次插入4 次删除

查看文件

@ -21,7 +21,7 @@
<el-tab-pane label="会话" name="conversations"> <el-tab-pane label="会话" name="conversations">
<div class="list-container"> <div class="list-container">
<div <div
v-for="conv in im.conversations" v-for="conv in conversations"
:key="conv.targetId" :key="conv.targetId"
:class="['conv-item', { active: currentTarget?.targetId === conv.targetId }]" :class="['conv-item', { active: currentTarget?.targetId === conv.targetId }]"
@click="selectConversation(conv)" @click="selectConversation(conv)"
@ -35,7 +35,7 @@
<span class="conv-time">{{ formatTime(conv.lastMsgTime) }}</span> <span class="conv-time">{{ formatTime(conv.lastMsgTime) }}</span>
</div> </div>
</div> </div>
<el-empty v-if="im.conversations.length === 0" description="暂无会话" /> <el-empty v-if="conversations.length === 0" description="暂无会话" />
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -72,7 +72,7 @@
<div ref="msgContainer" class="message-list"> <div ref="msgContainer" class="message-list">
<div <div
v-for="msg in im.messages" v-for="msg in messages"
:key="msg.id" :key="msg.id"
:class="['message-row', msg.fromId === userId ? 'self' : 'other']" :class="['message-row', msg.fromId === userId ? 'self' : 'other']"
> >
@ -97,7 +97,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-empty v-if="im.messages.length === 0 && currentTarget" description="暂无消息" /> <el-empty v-if="messages.length === 0 && currentTarget" description="暂无消息" />
</div> </div>
<div v-if="currentTarget" class="input-area"> <div v-if="currentTarget" class="input-area">
@ -203,6 +203,8 @@ const getGroups = im.getGroups
const setConversationPinnedState = im.setConversationPinnedState const setConversationPinnedState = im.setConversationPinnedState
const setConversationMutedState = im.setConversationMutedState const setConversationMutedState = im.setConversationMutedState
const removeConversation = im.removeConversation const removeConversation = im.removeConversation
const conversations = im.conversations
const messages = im.messages
const activeTab = ref('conversations') const activeTab = ref('conversations')
const activeCollapse = ref(['msg']) const activeCollapse = ref(['msg'])

1
tsconfig.tsbuildinfo 普通文件
查看文件

@ -0,0 +1 @@
{"root":["./src/main.ts","./src/app.vue","./src/views/chatdemoview.vue","./src/views/loginview.vue"],"errors":true,"version":"5.9.3"}