From 560378fd45d120485672cb0f7478fa9c2acb2a96 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Fri, 17 Mar 2023 11:40:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20usingContext=20?= =?UTF-8?q?=E7=BC=BA=E7=9C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/chat/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/chat/helper.ts b/src/store/modules/chat/helper.ts index 39adb7a..c934a40 100644 --- a/src/store/modules/chat/helper.ts +++ b/src/store/modules/chat/helper.ts @@ -14,7 +14,7 @@ export function defaultState(): Chat.ChatState { export function getLocalState(): Chat.ChatState { const localState = ss.get(LOCAL_NAME) - return localState ?? defaultState() + return { ...defaultState(), ...localState } } export function setLocalState(state: Chat.ChatState) {