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")
}