fix: 移除currentContract持久化并清理调试日志和WebSocket状态

移除weChat模块中currentContract的持久化配置,避免登录和刷新时数据残留
清理ChatWindow组件中的调试日志
在登录时清空WebSocket连接状态
This commit is contained in:
超级老白兔
2025-09-03 16:49:45 +08:00
parent c27642bc12
commit 9cdfe552e0
3 changed files with 4 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ export const useWeChatStore = create<WeChatState>()(
{
name: "wechat-storage",
partialize: state => ({
currentContract: state.currentContract,
// currentContract 不做持久化,登录和页面刷新时直接清空
}),
},
),