<!-- 日志组件 -->
<div class="card">
    <div class="card-title">📋 操作日志</div>
    <div class="log-area">
        <div v-for="(log, index) in logs" :key="index" :class="['log-item', log.type]">
            [{{ log.time }}] {{ log.message }}
        </div>
        <div v-if="logs.length === 0" class="log-info">
            暂无操作日志
        </div>
    </div>
    <el-button size="small" @click="clearLogs" style="margin-top: 10px;">
        清空日志
    </el-button>
</div>