diff --git a/src/components/dashboard/LogPanel.vue b/src/components/dashboard/LogPanel.vue index 65ed460..db92a40 100644 --- a/src/components/dashboard/LogPanel.vue +++ b/src/components/dashboard/LogPanel.vue @@ -2,6 +2,7 @@ import { ref, computed, watch, nextTick } from 'vue' import { useLogs } from '../../stores/useLogs' import { mqttGetLogDir } from '../../stores/useMqttBridge' +import { prettyJson } from '../../utils/format' import { ElMessage } from 'element-plus' const { logs, clear } = useLogs() @@ -121,7 +122,7 @@ function eventIcon(event: string): string { {{ expandedDetails.has(log.id) ? '收起' : '详情' }}