diff --git a/src/oj/learn/index.vue b/src/oj/learn/index.vue index 917f87f..ebc4d4f 100644 --- a/src/oj/learn/index.vue +++ b/src/oj/learn/index.vue @@ -114,6 +114,7 @@ const menu = computed(() => { async function init() { const res1 = await getTutorials() titles.value = res1.data + if (titles.value.length === 0) return const id = titles.value[step.value - 1].id const res2 = await getTutorial(id) tutorial.value = res2.data