diff --git a/Cunkebao/src/store/module/weChat/weChat.ts b/Cunkebao/src/store/module/weChat/weChat.ts index 2941c710..b48102e2 100644 --- a/Cunkebao/src/store/module/weChat/weChat.ts +++ b/Cunkebao/src/store/module/weChat/weChat.ts @@ -91,12 +91,11 @@ export const useWeChatStore = create()( }); } } + set({ messagesLoading: false }); } catch (error) { console.error("获取聊天消息失败:", error); } finally { - setTimeout(() => { - set({ messagesLoading: false }); - }, 1500); + set({ messagesLoading: false }); } },