, tag: string) => {
acc[tag] = TAG_COLORS[Math.floor(Math.random() * TAG_COLORS.length)];
return acc;
}, {});
}, [taskObject?.tags]); // 只在 tags 改变时重新计算
return (
<>
{taskObject?.title ? (
<>
{taskObject?.title || currentLoadingText}
>
) : currentLoadingText}
{
console.log('Modal manually closed');
setIsScriptModalOpen(false);
}}
currentStage={currentStage}
roles={roles}
currentLoadingText={currentLoadingText}
/>
{
currentLoadingText !== 'Task completed' && (
currentLoadingText.includes('failed') ? (
{currentLoadingText}
) : (
{/* */}
{/* 阶段图标 */}
setIsStageIconsExpanded(true)}
onMouseLeave={() => setIsStageIconsExpanded(false)}
>
{/* 背景发光效果 */}
{isPauseWorkFlow ? 'workflow paused' : currentLoadingText}
{/* 主文字 - 颜色填充动画 */}
setIsScriptModalOpen(true)}
>
{currentLoadingText}
{/* 动态光点效果 */}
{/* */}
{/* 文字底部装饰线 */}
)
)
}
>
);
}