diff --git a/src/layouts/LineLayout.vue b/src/layouts/LineLayout.vue index 6e884bf..5fa58c4 100644 --- a/src/layouts/LineLayout.vue +++ b/src/layouts/LineLayout.vue @@ -332,9 +332,20 @@ watch( val.state == state.SimulationStatus.SimulationState.DESTROY ) { $q.dialog({ - title: '确认', - message: `【${projectName.value}】项目仿真已经结束,是否确认退出?`, - cancel: true, + title: '提示', + message: `【${projectName.value}】项目仿真已经结束,请确认退出!`, + cancel: false, + }).onOk(() => { + backConfirm(); + }); + } else if ( + val.simulationId == simulationId && + val.state === state.SimulationStatus.SimulationState.ERROR + ) { + $q.dialog({ + title: '提示', + message: `【${projectName.value}】项目仿真异常,请确认退出!`, + cancel: false, }).onOk(() => { backConfirm(); });