This commit is contained in:
2025-01-15 11:55:28 +08:00
parent 9be8827b6c
commit 1ea808e3ff
15 changed files with 29 additions and 16 deletions

View File

@@ -43,7 +43,12 @@ function goSubmissions() {
}
function goEdit() {
const data = router.resolve("/admin/problem/edit/" + problem.value!.id)
let data = router.resolve("/admin/problem/edit/" + problem.value!.id)
if (problem.value!.contest) {
data = router.resolve(
`/admin/contest/${problem.value!.contest}/problem/edit/${problem.value!.id}`,
)
}
window.open(data.href, "_blank")
}

View File

@@ -171,6 +171,6 @@ function copyUnaccepted() {
const prefix = `${grade}计算机${classname}${query.problem}这道题有${listUnaccepted.value.length}人没有完成,分别是:`
const names = listUnaccepted.value.map(removeClassname).join("、")
const suffix = "。请以上同学尽快完成!"
message.value = prefix+names+suffix
message.value = prefix + names + suffix
}
</script>