feat: 添加直播聊天功能与相关配置

- 在 LiveChatPanel.vue 中实现直播间聊天功能,支持发送和接收消息。
- 新增 useChat.js 组合式 API,管理聊天逻辑与状态。
- 更新 Live.vue 控制面板,集成聊天组件并优化直播状态显示。
- 更新 package.json 和 pnpm-lock.yaml,添加 @tencentcloud/chat 和 hls.js 依赖。
This commit is contained in:
Ryan Ran
2026-07-07 16:40:09 +08:00
parent 548335b658
commit 709d114986
9 changed files with 1113 additions and 65 deletions

View File

@@ -78,6 +78,9 @@ export const queryLiveMessagePage = params => getRequest('/live/message/page', p
export const authLiveMessage = params =>
putRequest('/live/message/auth', params, { 'Content-type': 'application/json' })
export const postSendMessage = params =>
postRequest('/live/message/send', params, { 'Content-type': 'application/json' })
// ========== 直播用户 / 拉黑 ==========
export const liveUserList = params => getRequest('/live/user/page', params)