|
|
|
@ -32,12 +32,16 @@ const initialConversationState = {
|
|
|
|
|
|
|
|
|
|
// templates: [],
|
|
|
|
|
|
|
|
|
|
// conversationsList: [], // 对话列表
|
|
|
|
|
// currentConversation: {}, // 当前对话
|
|
|
|
|
conversationsList: [], // 对话列表
|
|
|
|
|
currentConversation: {}, // 当前对话
|
|
|
|
|
|
|
|
|
|
// activeConversations: {}, // 激活的对话的消息列表: { [conversationId]: <messageItem>[] }
|
|
|
|
|
activeConversations: {}, // 激活的对话的消息列表: { [conversationId]: <messageItem>[] }
|
|
|
|
|
|
|
|
|
|
// referenceMsg: {},
|
|
|
|
|
referenceMsg: {},
|
|
|
|
|
complexMsg: {},
|
|
|
|
|
|
|
|
|
|
totalNotify: 0,
|
|
|
|
|
msgListLoading: false,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -345,6 +349,8 @@ export const useConversationStore = create(
|
|
|
|
|
setInitial(true);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
reset: () => set(initialConversationState),
|
|
|
|
|
}))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|