From 01c7b1d370e878d8030079e12315cb4c07f6821b Mon Sep 17 00:00:00 2001 From: LufsX Date: Wed, 16 Oct 2024 13:26:27 +0800 Subject: [PATCH] feat: add commit_url to show --- get_scores.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_scores.js b/get_scores.js index 71accec..e32db5c 100644 --- a/get_scores.js +++ b/get_scores.js @@ -48,7 +48,7 @@ function showDetailsModal(para, project, index) { fetch(`${BACKEND_URL}/get_scores/${project}?sort_by=${para}`) .then((response) => response.json()) .then((data) => { - modalDetails.innerHTML = data[index].details + "

"; + modalDetails.innerHTML = data[index].details + "

" + (data[index].hash ? `若仓库设置为公开,则可点击查看评测所对应提交

` : ""); modal.style.display = "block"; }); }