From d2ecbec16ab9d7768b8d07a93d22816507d81833 Mon Sep 17 00:00:00 2001 From: hongjli <3117313295@qq.com> Date: 星期日, 27 四月 2025 20:52:14 +0800 Subject: [PATCH] 渲染echarts图优化 --- src/components/SceneIntroDialog.tsx | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/SceneIntroDialog.tsx b/src/components/SceneIntroDialog.tsx index a79138c..fea9b41 100644 --- a/src/components/SceneIntroDialog.tsx +++ b/src/components/SceneIntroDialog.tsx @@ -4,7 +4,6 @@ import { Fragment, useEffect, useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import DataPreviewDialog from './DataPreviewDialog'; -import { useRouter } from 'next/navigation'; interface SceneIntroDialogProps { isOpen: boolean; @@ -27,7 +26,6 @@ scene }: SceneIntroDialogProps) { const [showDataPreview, setShowDataPreview] = useState(false); - const router = useRouter(); // 纭繚鍔ㄧ敾鐘舵�佸湪姣忔鎵撳紑鏃堕兘琚噸缃� useEffect(() => { @@ -46,7 +44,10 @@ const handleStartChat = () => { onClose(); - router.push(`/ai-scene/chat?scene=${scene.chatbotId}`); + document.body.classList.add('page-transitioning'); + setTimeout(() => { + window.location.href = `/ai-scene/chat?scene=${scene.chatbotId}`; + }, 100); }; return ( -- Gitblit v1.9.3