update
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user