From bc1b120de0e29f549113771c3aeafe2f76dbac2d Mon Sep 17 00:00:00 2001 From: Lei OT Date: Wed, 6 Nov 2024 14:39:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/ConversationActions.js | 12 ------------ src/stores/ConversationStore.js | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/actions/ConversationActions.js b/src/actions/ConversationActions.js index a2475b6..cff470e 100644 --- a/src/actions/ConversationActions.js +++ b/src/actions/ConversationActions.js @@ -261,15 +261,3 @@ export const deleteConversationTags = async (params) => { const { errcode, result } = await fetchJSON(`${API_HOST}/set_conversation_tags_del`, params); return errcode !== 0 ? {} : result; } -/** - * 附加备注 - * @param {object} body { opisn, conversationid, memo } - */ -export const postConversationMemo = async (body) => { - const formData = new FormData(); - Object.keys(body).forEach(function (key) { - formData.append(key, body[key]); - }); - const { errcode, result } = await fetchJSON(`${API_HOST}/set_conversation_Memo`, formData); - return errcode !== 0 ? {} : result; -} diff --git a/src/stores/ConversationStore.js b/src/stores/ConversationStore.js index 8450b85..11220ed 100644 --- a/src/stores/ConversationStore.js +++ b/src/stores/ConversationStore.js @@ -411,7 +411,7 @@ export const useConversationStore = create( setInitial: (v) => set({ initialState: v }), // side effects - fetchInitialData: async ({userIds, whatsAppBusiness, ...loginUser}) => { + fetchInitialData: async ({userId, userIds, whatsAppBusiness, ...loginUser}) => { const { addToConversationList, setTemplates, setInitial, setClosedConversationList, setTags } = get(); // const conversationsList = await fetchConversationsList({ opisn: userIds }); @@ -423,7 +423,7 @@ export const useConversationStore = create( // const closedList = await fetchConversationsList({ opisn: userIds, session_enable: 0 }); // setClosedConversationList(closedList); - const myTags = await fetchTags({ opisn: userIds}); + const myTags = await fetchTags({ opisn: userId}); setTags(myTags); setInitial(true);