Skip to content

Commit

Permalink
Merge pull request #2431 from Hopelwj/main
Browse files Browse the repository at this point in the history
设置页面-参数过滤空格
  • Loading branch information
Yidadaa authored Jul 19, 2023
2 parents f0abdc8 + b9895ec commit f535073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/store/access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f535073

Please sign in to comment.