forked from XiaoMo/ChatGPT-Next-Web
fix: useAccessStore filter spaces
This commit is contained in:
parent
22cf78d506
commit
322eb66fdf
@ -48,13 +48,13 @@ export const useAccessStore = create<AccessControlStore>()(
|
||||
return get().needCode;
|
||||
},
|
||||
updateCode(code: string) {
|
||||
set(() => ({ accessCode: code }));
|
||||
set(() => ({ accessCode: code?.trim() }));
|
||||
},
|
||||
updateToken(token: string) {
|
||||
set(() => ({ token }));
|
||||
set(() => ({ token: token?.trim() }));
|
||||
},
|
||||
updateOpenAiUrl(url: string) {
|
||||
set(() => ({ openaiUrl: url }));
|
||||
set(() => ({ openaiUrl: url?.trim() }));
|
||||
},
|
||||
isAuthorized() {
|
||||
get().fetch();
|
||||
|
Loading…
Reference in New Issue
Block a user