feat:recovery some code

This commit is contained in:
cbmland 2024-07-14 12:42:57 +08:00
parent c0c3d7fd34
commit 4daf39d5b8
2 changed files with 0 additions and 3 deletions

View File

@ -170,7 +170,6 @@ export class ClientApi {
export function getHeaders() {
const accessStore = useAccessStore.getState();
console.log("===== accessStore", accessStore);
const chatStore = useChatStore.getState();
const headers: Record<string, string> = {
"Content-Type": "application/json",
@ -248,7 +247,6 @@ export function getHeaders() {
ACCESS_CODE_PREFIX + accessStore.accessCode,
);
}
console.log("API accessStore.accessCode", accessStore.accessCode);
return headers;
}

View File

@ -94,7 +94,6 @@ export const useAccessStore = createPersistStore(
(set, get) => ({
enabledAccessControl() {
this.fetch();
return true;
return get().needCode;
},