From 61fdf8eb312c3d372f673b4ac6da96d53128423f Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Thu, 29 Dec 2022 14:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E5=AE=89=E4=BA=8C=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E4=BF=A1=E5=8F=B7=E6=9C=BA=E6=97=A0=E6=B3=95=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/xian_02/menus/menuSignal.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/jmapNew/theme/xian_02/menus/menuSignal.vue b/src/jmapNew/theme/xian_02/menus/menuSignal.vue index 941028f30..807fcc29a 100644 --- a/src/jmapNew/theme/xian_02/menus/menuSignal.vue +++ b/src/jmapNew/theme/xian_02/menus/menuSignal.vue @@ -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(); }