From 7603b21cbcbfbaeef7556fea2d3472da02d5abf9 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Mon, 1 Jul 2024 17:32:49 +0800 Subject: [PATCH] test --- app/utils/hooks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils/hooks.ts b/app/utils/hooks.ts index 072ff90e2..cabc55918 100644 --- a/app/utils/hooks.ts +++ b/app/utils/hooks.ts @@ -1,10 +1,13 @@ import { useMemo } from "react"; import { useAccessStore, useAppConfig } from "../store"; import { collectModels, collectModelsWithDefaultModel } from "./model"; +import { useSession } from "next-auth/react"; export function useAllModels() { const accessStore = useAccessStore(); const configStore = useAppConfig(); + const { data: session, status } = useSession(); + console.log("-sssssssssss", session, status); const models = useMemo(() => { return collectModelsWithDefaultModel( configStore.models,