diff --git a/src/jmapNew/theme/datie_02/menus/menuButton.vue b/src/jmapNew/theme/datie_02/menus/menuButton.vue index 76e154404..be6de9955 100644 --- a/src/jmapNew/theme/datie_02/menus/menuButton.vue +++ b/src/jmapNew/theme/datie_02/menus/menuButton.vue @@ -494,6 +494,7 @@ export default { // 清除按钮 const operate = { start: true, + userOperationType: 'leftClick', operation: operation }; this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { diff --git a/src/scripts/cmdPlugin/ValidateHandler.js b/src/scripts/cmdPlugin/ValidateHandler.js index 7148de052..e77f3f886 100644 --- a/src/scripts/cmdPlugin/ValidateHandler.js +++ b/src/scripts/cmdPlugin/ValidateHandler.js @@ -66,8 +66,9 @@ class ValidateHandler { if (operate.userOperationType || stepOperation.userOperationType) { valid = (operate.userOperationType === stepOperation.userOperationType) && valid; } - if (operate.param || stepOperation.params) { - valid = objectIsEqual(operate.param, stepOperation.params) && valid; + const opParam = operate.param == undefined ? {} : operate.param; + if (opParam || stepOperation.params) { + valid = objectIsEqual(opParam, stepOperation.params) && valid; } Handler.handleCheckNewTrainingResult(valid); return valid; diff --git a/src/views/trainingManage/editOperate.vue b/src/views/trainingManage/editOperate.vue index 4a375ee00..6036b6e61 100644 --- a/src/views/trainingManage/editOperate.vue +++ b/src/views/trainingManage/editOperate.vue @@ -16,8 +16,8 @@ -