优化日志显示

This commit is contained in:
刘祥超
2021-05-25 12:14:21 +08:00
parent 2b560a225e
commit 7dd58fd9dc
5 changed files with 10 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
</thead>
<tr v-for="log in logs">
<td>
<pre class="log-box"><span :class="{red:log.level == 'error', yellow:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span></pre>
<pre class="log-box"><span :class="{red:log.level == 'error', orange:log.level == 'warning'}"><span v-if="!log.isToday">[{{log.createdTime}}]</span><strong v-if="log.isToday">[{{log.createdTime}}]</strong>[{{log.tag}}]{{log.description}}</span></pre>
</td>
</tr>
</table>