From c487a649d4ed5908d6a1d7a20134adba0b1e1ed2 Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 30 Jan 2024 17:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E7=9C=9F=E7=BB=93=E6=9D=9F=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/LineLayout.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layouts/LineLayout.vue b/src/layouts/LineLayout.vue index a1cb824..0d67a7a 100644 --- a/src/layouts/LineLayout.vue +++ b/src/layouts/LineLayout.vue @@ -325,12 +325,14 @@ watch( } ); const errorSimulation = ref(false); +const simulationOver = ref(false); watch( () => testManageStore.socketInfo, (val) => { if ( val.simulationId == simulationId && - val.state == state.SimulationStatus.SimulationState.Destroy + val.state == state.SimulationStatus.SimulationState.Destroy && + !simulationOver.value ) { $q.dialog({ title: '提示', @@ -342,7 +344,8 @@ watch( } else if ( val.simulationId == simulationId && val.state === state.SimulationStatus.SimulationState.Error && - !errorSimulation.value + !errorSimulation.value && + !simulationOver.value ) { errorSimulation.value = true; $q.dialog({ @@ -366,6 +369,7 @@ function destroySimAndBack() { try { if (simulationId) { $q.loading.show(); + simulationOver.value = true; await destroySimulation({ simulationId }); } backConfirm();