mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 20:29:34 +00:00
fix: 添加 usingContext 缺省
This commit is contained in:
1 parent
95ce026813
commit
560378fd45
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user