mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user