西安二右键信号机无法继续问题

This commit is contained in:
dong 2022-12-29 14:57:01 +08:00
parent 0bb6ab6629
commit 61fdf8eb31

View File

@ -220,22 +220,16 @@ export default {
userOperationType: 'rightClick',
operation: OperationEvent.Command.commandRight.right.operation
};
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) {
this.doShow(this.$store.state.menuOperation.menuPosition);
}
});
this.$store.dispatch('trainingNew/next', operate);
this.doShow(this.$store.state.menuOperation.menuPosition);
} else if (this.selected && this.selected._type === 'Signal' && this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Enabled) && !this.buttonOperation) {
const operate = {
code: `${this.selected.code}`,
userOperationType: 'rightClick',
operation: OperationEvent.Command.commandRight.right.operation
};
this.$store.dispatch('trainingNew/next', operate).then(({ valid }) => {
if (valid) {
this.doEnabledShow(this.$store.state.menuOperation.menuPosition);
}
});
this.$store.dispatch('trainingNew/next', operate);
this.doEnabledShow(this.$store.state.menuOperation.menuPosition);
} else {
this.doClose();
}