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 @@
+
+
+
+
+
+
+
+ {{ user.nickname }}
+ 、
+
+
+
已成为管理员
+
+
+
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'
}
// 可转发的消息类型