From 5c530925115cdf64a02f51c57f372bf885d6438b Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 13 Feb 2023 15:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=9A=E5=AE=9E=E8=AE=AD?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E8=AE=B0=E5=BD=95=E5=A2=9E=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/trainingNew.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/modules/trainingNew.js b/src/store/modules/trainingNew.js index c4facbd3e..210444b43 100644 --- a/src/store/modules/trainingNew.js +++ b/src/store/modules/trainingNew.js @@ -115,6 +115,9 @@ const training = { state.examSwitch = flag; }, handleStepRecord: (state, { type, stepOperation }) => { + if (!state.stepRecord.length) { + return; + } const step = state.stepRecord[state.stepRecord.length - 1]; if (!step.clientOperations.length || step.clientOperations[step.clientOperations.length - 1].id !== stepOperation.id) { step.clientOperations.push({ id: stepOperation.id });