fix
This commit is contained in:
@@ -114,6 +114,7 @@ const menu = computed<DropdownOption[]>(() => {
|
|||||||
async function init() {
|
async function init() {
|
||||||
const res1 = await getTutorials()
|
const res1 = await getTutorials()
|
||||||
titles.value = res1.data
|
titles.value = res1.data
|
||||||
|
if (titles.value.length === 0) return
|
||||||
const id = titles.value[step.value - 1].id
|
const id = titles.value[step.value - 1].id
|
||||||
const res2 = await getTutorial(id)
|
const res2 = await getTutorial(id)
|
||||||
tutorial.value = res2.data
|
tutorial.value = res2.data
|
||||||
|
|||||||
Reference in New Issue
Block a user