仿真结束弹框调整
This commit is contained in:
parent
9531f7bfa3
commit
c487a649d4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user