fix
This commit is contained in:
parent
bc5f6106bc
commit
b17d613750
|
@ -127,7 +127,7 @@ export const tutorialBodyPagesDef = [{
|
||||||
type: 'tutorial',
|
type: 'tutorial',
|
||||||
title: i18n.ts._initialTutorial._timeline.title,
|
title: i18n.ts._initialTutorial._timeline.title,
|
||||||
}, {
|
}, {
|
||||||
icon: 'ti ti-user-add',
|
icon: 'ti ti-user',
|
||||||
type: 'setup',
|
type: 'setup',
|
||||||
title: i18n.ts.follow,
|
title: i18n.ts.follow,
|
||||||
}, {
|
}, {
|
||||||
|
@ -207,7 +207,7 @@ const componentsDef: Tuple<ComponentDef, typeof tutorialBodyPagesDef.length> = [
|
||||||
const page = ref(props.initialPage ?? 0);
|
const page = ref(props.initialPage ?? 0);
|
||||||
|
|
||||||
const currentPageDef = computed(() => {
|
const currentPageDef = computed(() => {
|
||||||
if (page.value > 0 && page.value < MAX_PAGE - 1) {
|
if (page.value > 0 && page.value < MAX_PAGE) {
|
||||||
return tutorialBodyPagesDef[page.value - 1] ?? null;
|
return tutorialBodyPagesDef[page.value - 1] ?? null;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue