diff --git a/src/admin/problem/list.vue b/src/admin/problem/list.vue index 7fad85f..bfd306d 100644 --- a/src/admin/problem/list.vue +++ b/src/admin/problem/list.vue @@ -37,7 +37,8 @@ const total = ref(0) const problems = ref([]) const nextDisplayID = computed(() => { - if (!isContestProblemList.value || problems.value.length === 0) return "" + if (!isContestProblemList.value) return "" + if (problems.value.length === 0) return "1" const ids = problems.value.map((p) => p._id) if (ids.every((id) => /^\d+$/.test(id))) { return String(Math.max(...ids.map((id) => parseInt(id))) + 1)