feat: fix empty log

This commit is contained in:
engigu
2026-03-12 19:11:19 +08:00
parent a31c12d119
commit 14d09f4cc0
2 changed files with 19 additions and 20 deletions
+6 -6
View File
@@ -78,14 +78,14 @@ onUnmounted(() => {
</Button>
</div>
</div>
<div class="flex-1 overflow-hidden" :class="resolvedTheme === 'dark' ? darkLogBackgroundClass : lightLogBackgroundClass">
<LogTerminal
:content="content"
:theme="resolvedTheme"
/>
<div class="flex-1 overflow-hidden relative"
:class="resolvedTheme === 'dark' ? darkLogBackgroundClass : lightLogBackgroundClass">
<LogTerminal v-if="content" :content="content" :theme="resolvedTheme" />
<div v-else class="absolute inset-0 flex items-center justify-center text-zinc-500 font-mono text-sm italic">
无日志输出
</div>
</div>
</div>
</div>
</Teleport>
</template>