batch update.

This commit is contained in:
2023-02-01 23:53:27 +08:00
parent 449ada30c2
commit f098c54afb
10 changed files with 55 additions and 55 deletions

View File

@@ -22,7 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
const problem = ref<Problem>()
async function init() {
const res = await getProblem(props.problemID)
const res = await getProblem(props.problemID, props.contestID)
problem.value = res.data
}
onMounted(init)
@@ -42,11 +42,6 @@ provide("problem", readonly(problem))
<n-tab-pane v-if="isMobile" name="editor" tab="代码编辑">
<Editor :problem="problem" />
</n-tab-pane>
<n-tab-pane
name="contest"
tab="比赛信息"
v-if="props.contestID"
></n-tab-pane>
<n-tab-pane name="info" tab="题目信息">
<ProblemInfo :problem="problem" />
</n-tab-pane>