日志最多保留200行
This commit is contained in:
parent
25f9915fcc
commit
942d93417b
3 changed files with 17 additions and 10 deletions
|
@ -11,7 +11,7 @@ const current_state = inject('current_state')
|
|||
const notification = useNotification()
|
||||
|
||||
async function start() {
|
||||
log.value = ''
|
||||
log.value = []
|
||||
running.value = true
|
||||
for (const [i, step] of steps.value.entries()) {
|
||||
current_step.value = i + 1
|
||||
|
|
|
@ -51,7 +51,7 @@ hljs.registerLanguage('naive-log', () => ({
|
|||
<template>
|
||||
<n-config-provider :theme="darkTheme" class="provider" :hljs="hljs">
|
||||
<n-card class="full" content-style="height: 100%">
|
||||
<n-log :log="log" class="full selectable-log" ref="log_ele" language="naive-log" />
|
||||
<n-log :lines="log" class="full selectable-log" ref="log_ele" language="naive-log" />
|
||||
</n-card>
|
||||
</n-config-provider>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue