feat: #2330 disable /list/models

This commit is contained in:
Yidadaa
2023-07-10 23:19:43 +08:00
parent c00a63e4c3
commit 15e063e1b5
4 changed files with 20 additions and 25 deletions

View File

@@ -28,6 +28,7 @@ import { useAppConfig } from "../store/config";
import { AuthPage } from "./auth";
import { getClientConfig } from "../config/client";
import { api } from "../client/api";
import { useAccessStore } from "../store";
export function Loading(props: { noLogo?: boolean }) {
return (
@@ -171,6 +172,7 @@ export function Home() {
useEffect(() => {
console.log("[Config] got config from build time", getClientConfig());
useAccessStore.getState().fetch();
}, []);
if (!useHasHydrated()) {