From ead9260691f0281c9e84e3586959fac4aebd81e2 Mon Sep 17 00:00:00 2001 From: qiutianhong Date: Mon, 11 Nov 2024 09:41:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=BE=A4?= =?UTF-8?q?=E6=88=90=E5=91=98=E5=AF=B9=E8=B1=A1=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components.d.ts | 4 ---- frontend/src/components/chat/ChatMessage.vue | 2 +- frontend/src/components/chat/chatGroupMember.vue | 10 ---------- frontend/src/stores/chat.ts | 2 +- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/frontend/components.d.ts b/frontend/components.d.ts index cb5a945..8aec1ce 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -51,7 +51,6 @@ declare module 'vue' { EditType: typeof import('./src/components/builtin/EditType.vue')['default'] ElAside: typeof import('element-plus/es')['ElAside'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] - ElAvimg: typeof import('element-plus/es')['ElAvimg'] ElBadge: typeof import('element-plus/es')['ElBadge'] ElButton: typeof import('element-plus/es')['ElButton'] ElCard: typeof import('element-plus/es')['ElCard'] @@ -73,7 +72,6 @@ declare module 'vue' { ElHeader: typeof import('element-plus/es')['ElHeader'] ElIcon: typeof import('element-plus/es')['ElIcon'] ElImage: typeof import('element-plus/es')['ElImage'] - ElImg: typeof import('element-plus/es')['ElImg'] ElInput: typeof import('element-plus/es')['ElInput'] ElMain: typeof import('element-plus/es')['ElMain'] ElMenu: typeof import('element-plus/es')['ElMenu'] @@ -83,7 +81,6 @@ declare module 'vue' { ElPopover: typeof import('element-plus/es')['ElPopover'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRow: typeof import('element-plus/es')['ElRow'] - ElS: typeof import('element-plus/es')['ElS'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] @@ -151,7 +148,6 @@ declare module 'vue' { StartOption: typeof import('./src/components/taskbar/StartOption.vue')['default'] StateIcon: typeof import('./src/components/taskbar/StateIcon.vue')['default'] Store: typeof import('./src/components/store/Store.vue')['default'] - Svg: typeof import('./src/components/svg/index.vue')['default'] Taskbar: typeof import('./src/components/taskbar/Taskbar.vue')['default'] Upgrade: typeof import('./src/components/desktop/Upgrade.vue')['default'] UpPopover: typeof import('./src/components/computer/UpPopover.vue')['default'] diff --git a/frontend/src/components/chat/ChatMessage.vue b/frontend/src/components/chat/ChatMessage.vue index e548156..0a04b90 100644 --- a/frontend/src/components/chat/ChatMessage.vue +++ b/frontend/src/components/chat/ChatMessage.vue @@ -231,7 +231,7 @@ const currUserId = ref(); // 添加格式化时间的方法 - function formatTime(timestamp) { + function formatTime(timestamp:string) { const date = new Date(timestamp); const month = date.getMonth() + 1; // 月份是从0开始的 const day = date.getDate(); diff --git a/frontend/src/components/chat/chatGroupMember.vue b/frontend/src/components/chat/chatGroupMember.vue index cfa5ea8..84323ea 100644 --- a/frontend/src/components/chat/chatGroupMember.vue +++ b/frontend/src/components/chat/chatGroupMember.vue @@ -41,16 +41,6 @@ } } ); - - // 监听抽屉状态变化,当打开时获取群成员列表 - watch( - () => store.drawerVisible, - (newVal) => { - if (newVal) { - store.getGroupMemberList(store.targetGroupInfo.group_id); - } - } - );