This commit is contained in:
2024-11-21 13:45:48 +08:00
parent abaec2c1c3
commit 7e9dfce293
2 changed files with 15 additions and 3 deletions

View File

@@ -41,15 +41,15 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
const userLoginId = await funGetUserIdByToken();
// const userLoginId = await funGetUserIdByToken();
if (!token) return <>Require Token Storage</>;
// if (!token) return <>Require Token Storage</>;
return (
<RootStyleRegistry>
{/* <MqttLoader />
<TokenProvider token={token} envObject={envObject} /> */}
<RealtimeProvider userLoginId={userLoginId as string} />
{/* <RealtimeProvider userLoginId={userLoginId as string} /> */}
{children}
</RootStyleRegistry>
);