diff --git a/chatdesk-ui/app/[locale]/layout.tsx b/chatdesk-ui/app/[locale]/layout.tsx index 54615f4..37269d8 100644 --- a/chatdesk-ui/app/[locale]/layout.tsx +++ b/chatdesk-ui/app/[locale]/layout.tsx @@ -11,6 +11,7 @@ import { cookies } from "next/headers" import { ReactNode } from "react" import "./globals.css" import { getRuntimeEnv } from "@/lib/ipconfig" // 新增引入 +import Script from "next/script" const inter = Inter({ subsets: ["latin"] }) const APP_NAME = "ChatAI UI" @@ -116,6 +117,12 @@ export default async function RootLayout({ return ( + + + {/* ✅ 注入客户端运行时环境变量 */} +