新增会话列表聊天助手会话过滤,不处理新增消息类型
This commit is contained in:
parent
4cbad14c98
commit
e7f7d266da
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user