fix: 合并log

This commit is contained in:
wangzhongjie 2025-10-15 17:18:51 +08:00
commit 09096d8d6c

View File

@ -91,12 +91,11 @@ async function InitExam(dirName: string) {
// 写过程数据 // 写过程数据
async function WriteProcessData(type: ProcessDataEnumType, data: string) { async function WriteProcessData(type: ProcessDataEnumType, data: string) {
let result: LogWorkerMessage = JSON.parse(data) // if (type === ProcessDataEnumType.WuxiExam) {
if (type === ProcessDataEnumType.WuxiExam) { // writeQueue.push({ type, data });
writeQueue.push({ type, data: result.data || "" }); // } else {
} else { writeQueue.push({ type, data });
writeQueue.push({ type, data }); // }
}
if (!isProcessing) { if (!isProcessing) {
processQueue(); processQueue();
} }