This commit is contained in:
2026-04-13 04:59:40 -06:00
parent b22eb85f3a
commit 35ee7d69dd
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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)
} }
} }