过程数据文件写入更改
This commit is contained in:
parent
5ae19b4f71
commit
1671d57221
@ -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 {
|
||||
writeQueue.push({ type, data });
|
||||
}
|
||||
// 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