This commit is contained in:
GH Action - Upstream Sync 2023-07-20 01:21:30 +00:00
commit 40870be37d
1 changed files with 3 additions and 3 deletions

View File

@ -48,13 +48,13 @@ export const useAccessStore = create<AccessControlStore>()(
return get().needCode; return get().needCode;
}, },
updateCode(code: string) { updateCode(code: string) {
set(() => ({ accessCode: code })); set(() => ({ accessCode: code?.trim() }));
}, },
updateToken(token: string) { updateToken(token: string) {
set(() => ({ token })); set(() => ({ token: token?.trim() }));
}, },
updateOpenAiUrl(url: string) { updateOpenAiUrl(url: string) {
set(() => ({ openaiUrl: url })); set(() => ({ openaiUrl: url?.trim() }));
}, },
isAuthorized() { isAuthorized() {
get().fetch(); get().fetch();