fix: 合并log
This commit is contained in:
		
						commit
						09096d8d6c
					
				| @ -91,12 +91,11 @@ async function InitExam(dirName: string) { | ||||
| 
 | ||||
| // 写过程数据 | ||||
| async function WriteProcessData(type: ProcessDataEnumType, data: string) { | ||||
|   let result: LogWorkerMessage = JSON.parse(data) | ||||
|   if (type === ProcessDataEnumType.WuxiExam) { | ||||
|     writeQueue.push({ type, data: result.data || "" }); | ||||
|   } else { | ||||
|   // if (type === ProcessDataEnumType.WuxiExam) { | ||||
|   //   writeQueue.push({ type, data }); | ||||
|   // } else { | ||||
|   writeQueue.push({ type, data }); | ||||
|   } | ||||
|   // } | ||||
|   if (!isProcessing) { | ||||
|     processQueue(); | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user