fix
This commit is contained in:
@@ -91,12 +91,12 @@ const layoutConfig: Record<
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
const layoutIndex = ref(0)
|
const layoutIndex = ref(0)
|
||||||
const layoutIcon = computed(() => layoutConfig[layouts[layoutIndex.value]].icon)
|
const layoutIcon = computed(() => layoutConfig[layouts[layoutIndex.value]!].icon)
|
||||||
const layoutLabel = computed(
|
const layoutLabel = computed(
|
||||||
() => layoutConfig[layouts[layoutIndex.value]].label,
|
() => layoutConfig[layouts[layoutIndex.value]!].label,
|
||||||
)
|
)
|
||||||
const iframeWrapperStyle = computed(() => ({
|
const iframeWrapperStyle = computed(() => ({
|
||||||
maxWidth: layoutConfig[layouts[layoutIndex.value]].width,
|
maxWidth: layoutConfig[layouts[layoutIndex.value]!].width,
|
||||||
}))
|
}))
|
||||||
function cycleLayout() {
|
function cycleLayout() {
|
||||||
layoutIndex.value = (layoutIndex.value + 1) % layouts.length
|
layoutIndex.value = (layoutIndex.value + 1) % layouts.length
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ async function getContent() {
|
|||||||
if (target) {
|
if (target) {
|
||||||
show(display)
|
show(display)
|
||||||
} else if (list.value.length > 0) {
|
} else if (list.value.length > 0) {
|
||||||
show(list.value[0].display)
|
show(list.value[0]!.display)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user