fix: 添加 usingContext 缺省

main
ChenZhaoYu 2 years ago
parent 95ce026813
commit 560378fd45

@ -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) {

Loading…
Cancel
Save