diff --git a/frontend/src/views/home/components/preTest.vue b/frontend/src/views/home/components/preTest.vue index 2d0c08a..4c39a1f 100644 --- a/frontend/src/views/home/components/preTest.vue +++ b/frontend/src/views/home/components/preTest.vue @@ -174,10 +174,10 @@ function handleFatalError(stepRef: any, logRef: any, message: string) { stepRef.value = 'error'; ts.value = 'error'; step5.value = 'error'; - logRef.value = [{ + logRef.value.push({ type: 'error', log: message - }]; + }); } /** @@ -349,10 +349,10 @@ watch(webMsgSend, function (newValue, oldValue) { } else if (newValue.code == 10201) { step4.value = 'process' - step4InitLog.value = [{ + step4InitLog.value.push({ type: 'wait', log: '源参数下发中.....', - }]; + }); } else if (newValue.code == 10552) { ElMessage.error("存在已经初始化步骤,已经自动关闭,请重新发起检测!") handleFatalError(step4, step4InitLog, '存在已经初始化步骤,执行自动关闭,请重新发起检测!') @@ -373,10 +373,10 @@ watch(webMsgSend, function (newValue, oldValue) { }) } else if (newValue.code == 10201) { step4.value = 'process' - step4InitLog.value = [{ + step4InitLog.value.push({ type: 'wait', log: '获取数据相序校验数据!', - }]; + }); } else if (newValue.code == 25003) { handleFatalError(step4, step4InitLog, '相序校验未通过!') } else if (newValue.code == 25001) {