mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-28 06:06:38 +08:00
debug: use local accessCode
This commit is contained in:
parent
e5edfd97a5
commit
ec06309619
@ -14,7 +14,7 @@ import { showToast } from "../components/ui-lib";
|
||||
import Locale from "../locales";
|
||||
import { createSyncClient, ProviderType } from "../utils/cloud";
|
||||
import { corsPath } from "../utils/cors";
|
||||
|
||||
import { useAccessStore } from "../store";
|
||||
export interface WebDavConfig {
|
||||
server: string;
|
||||
username: string;
|
||||
@ -95,8 +95,10 @@ export const useSyncStore = createPersistStore(
|
||||
const provider = get().provider;
|
||||
const config = get()[provider];
|
||||
const client = this.getClient();
|
||||
const accessStore = useAccessStore();
|
||||
|
||||
|
||||
localState["access-control"].accessCode = accessStore.accessCode
|
||||
|
||||
try {
|
||||
const remoteState = await client.get(config.username);
|
||||
|
Loading…
Reference in New Issue
Block a user