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]