diff --git a/src/views/system/LoggingView.vue b/src/views/system/LoggingView.vue index 75d52d71..7758f644 100644 --- a/src/views/system/LoggingView.vue +++ b/src/views/system/LoggingView.vue @@ -28,7 +28,7 @@ function startSSELogging() { function extractLogDetailsFromLogs(logs: string[]): { level: string; time: string; program: string; content: string }[] { const logDetails: { level: string; time: string; program: string; content: string }[] = [] - const logPattern = /^【(.*?)】.*\s(.*?)\s-\s(.*?)\s-\s(.*)$/ + const logPattern = /^【(.*?)】[0-9\-:]*\s(.*?)\s-\s(.*?)\s-\s(.*)$/ for (const log of logs) { const matches = RegExp(logPattern).exec(log) @@ -70,7 +70,7 @@ onMounted(() => {