From e7f7d266da357e660240f0b3be7964d974e83bdf Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Fri, 8 Aug 2025 16:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=9A=E8=AF=9D=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=81=8A=E5=A4=A9=E5=8A=A9=E6=89=8B=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=EF=BC=8C=E4=B8=8D=E5=A4=84=E7=90=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/user/ContactModal.vue | 2 +- src/store/modules/talk.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/user/ContactModal.vue b/src/components/user/ContactModal.vue index dc762c8..7c59f1a 100644 --- a/src/components/user/ContactModal.vue +++ b/src/components/user/ContactModal.vue @@ -50,7 +50,7 @@ const onLoadContact = () => { if (res.code == 200) { let list = res.data.items || [] - items.value = list.map((item: any) => { + items.value = list.filter((item: any) => item.talk_type !== 1 && item.receiver_id !== 2).map((item: any) => { return { ...item, checked: false diff --git a/src/store/modules/talk.ts b/src/store/modules/talk.ts index 2ee09aa..6c04967 100644 --- a/src/store/modules/talk.ts +++ b/src/store/modules/talk.ts @@ -168,7 +168,7 @@ export const useTalkStore = defineStore('talk', { if (resp.code == 200) { // 将服务器返回的会话列表转换为应用所需格式 - const serverItems = resp.data.items.map((item: any) => { + const serverItems = resp.data.items.filter((item: any) => item.talk_type !== 1 && item.receiver_id !== 2).map((item: any) => { const value = formatTalkItem(item) const draft = useEditorDraftStore().items[value.index_name]