From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/ga/index.tsx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/components/base/ga/index.tsx b/app/components/base/ga/index.tsx
index 7a95561..0015edb 100644
--- a/app/components/base/ga/index.tsx
+++ b/app/components/base/ga/index.tsx
@@ -1,7 +1,7 @@
import type { FC } from 'react'
import React from 'react'
import Script from 'next/script'
-import { type UnsafeUnwrappedHeaders, headers } from 'next/headers'
+import { headers } from 'next/headers'
import { IS_CE_EDITION } from '@/config'
export enum GaType {
@@ -24,7 +24,7 @@
if (IS_CE_EDITION)
return null
- const nonce = process.env.NODE_ENV === 'production' ? (headers() as unknown as UnsafeUnwrappedHeaders).get('x-nonce') : ''
+ const nonce = process.env.NODE_ENV === 'production' ? headers().get('x-nonce') : ''
return (
<>
--
Gitblit v1.8.0