From 82b29a028391102353018c8f2ab29458dfac402b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sat, 26 Jul 2025 12:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/providers.tsx | 2 +- components/workflow/work-office/storyboard-artist.tsx | 1 + utils/dev-helper.tsx | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/providers.tsx b/components/providers.tsx index 834476f..f6a6618 100644 --- a/components/providers.tsx +++ b/components/providers.tsx @@ -14,7 +14,7 @@ const OAuthCallbackHandler = dynamic( ); const DevHelper = dynamic( - () => import('@/utils/dev-helper').then(mod => mod.default), + () => import('@/utils/dev-helper').then(mod => (mod as any).default), { ssr: false } ); diff --git a/components/workflow/work-office/storyboard-artist.tsx b/components/workflow/work-office/storyboard-artist.tsx index 243a69d..80b0baf 100644 --- a/components/workflow/work-office/storyboard-artist.tsx +++ b/components/workflow/work-office/storyboard-artist.tsx @@ -43,6 +43,7 @@ interface StoryboardContent { interface StoryboardArtistProps { currentContent: StoryboardContent; isPlaying: boolean; + sketchType: string; } const StoryboardArtist: React.FC = ({ currentContent, isPlaying }) => { diff --git a/utils/dev-helper.tsx b/utils/dev-helper.tsx index fa8cdbd..3b58cdd 100644 --- a/utils/dev-helper.tsx +++ b/utils/dev-helper.tsx @@ -1,8 +1,9 @@ 'use client'; import { useEffect } from 'react'; +import { FC } from 'react'; -export default function DevHelper() { +const DevHelper = (() => { useEffect(() => { // 在客户端环境下设置全局错误处理 if (typeof window !== 'undefined') { @@ -25,4 +26,6 @@ export default function DevHelper() { }, []); return null; -} \ No newline at end of file +}) as FC; + +export default DevHelper; \ No newline at end of file