mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-11 20:43:42 +08:00
Add support for MCP in export mode
This commit is contained in:
@@ -243,7 +243,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