From d3bd3c7c505abb3b0f9104f3824dfcdd45ef3848 Mon Sep 17 00:00:00 2001 From: brother7 <7brother7@gmail.com> Date: Fri, 29 May 2026 17:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/layout.tsx | 7 ++++ lib/client/random-uuid-polyfill.ts | 56 ++++++++++++++++++++++++++++++ tests/random-uuid-polyfill.test.ts | 32 +++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 lib/client/random-uuid-polyfill.ts create mode 100644 tests/random-uuid-polyfill.test.ts diff --git a/app/layout.tsx b/app/layout.tsx index cd2e9ef..26164e1 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,7 @@ import type { Metadata } from "next"; +import Script from "next/script"; import { AppShell } from "@/components/app-shell"; +import { randomUUIDPolyfillScript } from "@/lib/client/random-uuid-polyfill"; import "./globals.css"; export const metadata: Metadata = { @@ -11,6 +13,11 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( +