mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-12 20:23:45 +08:00
Merge 2f20905544 into c3b8c1587c
This commit is contained in:
@@ -250,7 +250,12 @@ export const useAccessStore = createPersistStore(
|
||||
);
|
||||
},
|
||||
fetch() {
|
||||
if (fetchState > 0 || getClientConfig()?.buildMode === "export") return;
|
||||
const clientConfig = getClientConfig();
|
||||
if (!(fetchState > 0) && clientConfig?.buildMode === "export") {
|
||||
set(clientConfig);
|
||||
fetchState = 2;
|
||||
}
|
||||
if (fetchState > 0 || clientConfig?.buildMode === "export") return;
|
||||
fetchState = 1;
|
||||
fetch("/api/config", {
|
||||
method: "post",
|
||||
|
||||
Reference in New Issue
Block a user