mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-07 01:18:54 +08:00
feat: 添加直播聊天功能与相关配置
- 在 LiveChatPanel.vue 中实现直播间聊天功能,支持发送和接收消息。 - 新增 useChat.js 组合式 API,管理聊天逻辑与状态。 - 更新 Live.vue 控制面板,集成聊天组件并优化直播状态显示。 - 更新 package.json 和 pnpm-lock.yaml,添加 @tencentcloud/chat 和 hls.js 依赖。
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user