feat: add commit_url to show

This commit is contained in:
2024-10-16 13:26:27 +08:00
parent 93bcd0aedc
commit 01c7b1d370
+1 -1
View File
@@ -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 + "<br><br>";
modalDetails.innerHTML = data[index].details + "<br><br>" + (data[index].hash ? `若<b>仓库设置</b>为公开,则可<a href="${data[index].hash}" target="_blank">点击查看</a>评测所对应提交<br><br>` : "");
modal.style.display = "block";
});
}