We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c0169 commit 8e73a5eCopy full SHA for 8e73a5e
1 file changed
frontend/src/pages/ProblemDetail.tsx
@@ -447,6 +447,16 @@ export default function ProblemDetail() {
447
>
448
<Send size={14} /> 查看全部提交
449
</Link>
450
+ <button
451
+ onClick={() => {
452
+ const text = `CodeJudge - ${problem.title}\n状态: ${submissionResult.status}\n得分: ${submissionResult.score}\n时间: ${submissionResult.created_at}`;
453
+ navigator.clipboard.writeText(text);
454
+ toast.success('结果已复制');
455
+ }}
456
+ className="text-sm text-dark-400 hover:text-white transition-colors inline-flex items-center gap-1"
457
+ >
458
+ <Clipboard size={14} /> 复制结果
459
+ </button>
460
</div>
461
462
);
0 commit comments