fix: 移除currentContract持久化并清理调试日志和WebSocket状态
移除weChat模块中currentContract的持久化配置,避免登录和刷新时数据残留 清理ChatWindow组件中的调试日志 在登录时清空WebSocket连接状态
This commit is contained in:
@@ -146,7 +146,7 @@ export const useWeChatStore = create<WeChatState>()(
|
||||
{
|
||||
name: "wechat-storage",
|
||||
partialize: state => ({
|
||||
currentContract: state.currentContract,
|
||||
// currentContract 不做持久化,登录和页面刷新时直接清空
|
||||
}),
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user