mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 00:47:28 +08:00
feat: add "Hide_Balance_Query" environment variable
This commit is contained in:
@@ -13,6 +13,7 @@ export interface AccessControlStore {
|
||||
needCode: boolean;
|
||||
hideUserApiKey: boolean;
|
||||
openaiUrl: string;
|
||||
hideBalanceQuery: boolean;
|
||||
|
||||
updateToken: (_: string) => void;
|
||||
updateCode: (_: string) => void;
|
||||
@@ -36,6 +37,7 @@ export const useAccessStore = create<AccessControlStore>()(
|
||||
needCode: true,
|
||||
hideUserApiKey: false,
|
||||
openaiUrl: DEFAULT_OPENAI_URL,
|
||||
hideBalanceQuery: false,
|
||||
|
||||
enabledAccessControl() {
|
||||
get().fetch();
|
||||
|
Reference in New Issue
Block a user