fix share sim

This commit is contained in:
songtianlun 2025-09-02 00:15:51 +08:00
parent 2b04ef3636
commit f3e7fb913d

View File

@ -525,6 +525,18 @@ export default function SimulatorRunPage({ params }: { params: Promise<{ id: str
<span>{t(`status.${run.status}`)}</span>
</div>
</Badge>
{/* 分享状态显示 */}
{run.permissions === 'public' && (
<Badge variant="secondary" className="text-xs">
{run.visibility === 'published' ? (
<span className="text-green-600 dark:text-green-400"></span>
) : (
<span className="text-orange-600 dark:text-orange-400"></span>
)}
</Badge>
)}
<span>{run.model.provider} {run.model.name}</span>
<span>
{formatDistanceToNow(new Date(run.createdAt), {