ACM helper

This commit is contained in:
2025-10-06 00:02:27 +08:00
parent 06146d8895
commit d2c031fbd9
10 changed files with 901 additions and 17 deletions

View File

@@ -73,13 +73,27 @@ async function copyToProblem() {
} else {
message.error("代码复制失败")
}
router.push({
name: "problem",
params: {
contestID: submission.value!.contest,
problemID: props.problemID,
},
})
// 判断是否是竞赛题目
const contestID = submission.value!.contest
if (contestID) {
// 竞赛题目
router.push({
name: "contest problem",
params: {
contestID: String(contestID),
problemID: props.problemID,
},
})
} else {
// 普通题目
router.push({
name: "problem",
params: {
problemID: props.problemID,
},
})
}
}
onMounted(init)