feat: fix empty log
This commit is contained in:
@@ -567,16 +567,15 @@ watch(() => route.query, (newQuery) => {
|
||||
<Maximize2 class="h-3.5 w-3.5" />
|
||||
</Button>
|
||||
</div>
|
||||
<div
|
||||
class="flex-1 overflow-hidden min-h-[160px]"
|
||||
:class="resolvedTheme === 'dark' ? 'bg-zinc-950' : 'bg-zinc-100'"
|
||||
ref="sideLogContainer"
|
||||
>
|
||||
<LogTerminal
|
||||
:content="decompressedOutput"
|
||||
:theme="resolvedTheme"
|
||||
/>
|
||||
<div v-if="isWsLoading" class="px-4 py-2 text-sm text-zinc-500 italic border-t border-zinc-200 dark:border-zinc-800">
|
||||
<div class="flex-1 overflow-hidden min-h-[160px] relative"
|
||||
:class="resolvedTheme === 'dark' ? 'bg-zinc-950' : 'bg-zinc-100'" ref="sideLogContainer">
|
||||
<LogTerminal v-if="decompressedOutput" :content="decompressedOutput" :theme="resolvedTheme" />
|
||||
<div v-else-if="!isWsLoading"
|
||||
class="absolute inset-0 flex items-center justify-center text-zinc-500 font-mono text-xs italic">
|
||||
无日志输出
|
||||
</div>
|
||||
<div v-if="isWsLoading"
|
||||
class="px-4 py-2 text-sm text-zinc-500 italic border-t border-zinc-200 dark:border-zinc-800 absolute bottom-0 left-0 w-full bg-inherit/80 backdrop-blur-sm">
|
||||
连接中...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user