This commit is contained in:
海龙 2025-08-31 00:11:00 +08:00
commit 94c06b7d4b
3 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,10 @@
'use client'; 'use client';
import WorkFlow from '@/components/pages/work-flow'; import dynamic from 'next/dynamic';
const WorkFlow = dynamic(() => import('@/components/pages/work-flow'), {
ssr: false
});
export default function ScriptWorkFlowPage() { export default function ScriptWorkFlowPage() {
return <WorkFlow />; return <WorkFlow />;

View File

@ -350,7 +350,7 @@ export const MediaViewer = React.memo(function MediaViewer({
</motion.div> </motion.div>
{/* 操作按钮组 */} {/* 操作按钮组 */}
<AnimatePresence> {/* <AnimatePresence>
<motion.div <motion.div
className="absolute top-4 right-4 z-10 gap-2 hidden group-hover:flex" className="absolute top-4 right-4 z-10 gap-2 hidden group-hover:flex"
initial={{ opacity: 0, y: -10 }} initial={{ opacity: 0, y: -10 }}
@ -364,7 +364,7 @@ export const MediaViewer = React.memo(function MediaViewer({
onClick={() => handleEditClick('3', 'final')} onClick={() => handleEditClick('3', 'final')}
/> />
</motion.div> </motion.div>
</AnimatePresence> </AnimatePresence> */}
{/* 底部控制区域 */} {/* 底部控制区域 */}
<motion.div <motion.div

View File

@ -49,10 +49,8 @@ const nextConfig = {
]; ];
}, },
// 确保静态文件可以正常访问 // 设置生成超时时间
experimental: { staticPageGenerationTimeout: 120,
staticPageGenerationTimeout: 120,
},
}; };
module.exports = nextConfig; module.exports = nextConfig;