refactor: 日志查看功能&优化日志功能

This commit is contained in:
2025-09-02 19:26:04 +08:00
parent 6b00c8a6be
commit baf8a642b8
9 changed files with 662 additions and 129 deletions

View File

@@ -0,0 +1,51 @@
<template>
<div class="logs-container">
<div class="logs-header">
<h1>日志查看</h1>
<p class="logs-description">查看和管理应用程序日志</p>
</div>
<LogViewer />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import LogViewer from '@/components/LogViewer.vue'
import { useTheme } from '@/composables/useTheme'
const { isDark } = useTheme()
const textColor = computed(() =>
isDark.value ? 'rgba(255, 255, 255, 0.88)' : 'rgba(0, 0, 0, 0.88)'
)
const textSecondaryColor = computed(() =>
isDark.value ? 'rgba(255, 255, 255, 0.65)' : 'rgba(0, 0, 0, 0.65)'
)
</script>
<style scoped>
.logs-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.logs-header {
margin-bottom: 24px;
}
.logs-header h1 {
margin: 0 0 8px 0;
font-size: 24px;
font-weight: 600;
color: v-bind(textColor);
}
.logs-description {
margin: 0;
color: v-bind(textSecondaryColor);
font-size: 14px;
line-height: 1.5;
}
</style>