From 659c2c3e12a53ad449f9c824e1f118a63769d477 Mon Sep 17 00:00:00 2001 From: wwt Date: Fri, 14 Mar 2025 09:45:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug#3941=201114=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + .../message/system/SysGroupAdminMessage.vue | 25 +++++++++++++++++++ src/constant/message.ts | 8 ++++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 src/components/talk/message/system/SysGroupAdminMessage.vue diff --git a/components.d.ts b/components.d.ts index f17f3c1..0dae289 100644 --- a/components.d.ts +++ b/components.d.ts @@ -34,6 +34,7 @@ declare module 'vue' { RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + SysGroupAdminMessage: typeof import('./src/components/talk/message/system/SysGroupAdminMessage.vue')['default'] SysGroupCancelMutedMessage: typeof import('./src/components/talk/message/system/SysGroupCancelMutedMessage.vue')['default'] SysGroupCreateMessage: typeof import('./src/components/talk/message/system/SysGroupCreateMessage.vue')['default'] SysGroupJoinMessage: typeof import('./src/components/talk/message/system/SysGroupJoinMessage.vue')['default'] diff --git a/src/components/talk/message/system/SysGroupAdminMessage.vue b/src/components/talk/message/system/SysGroupAdminMessage.vue new file mode 100644 index 0000000..f4b391c --- /dev/null +++ b/src/components/talk/message/system/SysGroupAdminMessage.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/constant/message.ts b/src/constant/message.ts index e983c3f..8c38705 100644 --- a/src/constant/message.ts +++ b/src/constant/message.ts @@ -26,6 +26,7 @@ export const ChatMsgSysGroupMemberMuted = 1109 // 群成员禁言 export const ChatMsgSysGroupMemberCancelMuted = 1110 // 群成员解除禁言 export const ChatMsgSysGroupNotice = 1111 // 编辑群公告 export const ChatMsgSysGroupTransfer = 1113 // 变更群主 +export const ChatMsgSysGroupAdmin = 1114 // 设置管理员 export const ChatMsgTypeMapping = { [ChatMsgTypeText]: '[文本消息]', @@ -53,7 +54,9 @@ export const ChatMsgTypeMapping = { [ChatMsgSysGroupCancelMuted]: '[群解除禁言消息]', [ChatMsgSysGroupMemberMuted]: '[群成员禁言消息]', [ChatMsgSysGroupMemberCancelMuted]: '[群成员解除禁言消息]', - [ChatMsgSysGroupNotice]: '[群公告]' + [ChatMsgSysGroupNotice]: '[群公告]', + [ChatMsgSysGroupTransfer]: '[转让群主]', + [ChatMsgSysGroupAdmin]: '[设置管理员]' } // 消息类型 - 消息组件 映射关系 @@ -83,7 +86,8 @@ export const MessageComponents = { [ChatMsgSysGroupCancelMuted]: 'sys-group-cancel-muted-message', [ChatMsgSysGroupMemberMuted]: 'sys-group-member-muted-message', [ChatMsgSysGroupMemberCancelMuted]: 'sys-group-member-cancel-muted-message', - [ChatMsgSysGroupTransfer]: 'sys-group-transfer-message' + [ChatMsgSysGroupTransfer]: 'sys-group-transfer-message', + [ChatMsgSysGroupAdmin]:'sys-group-admin-message' } // 可转发的消息类型