From 7617272d2bb01afd0f2261ba442abc01615042eb Mon Sep 17 00:00:00 2001 From: qishibo Date: Tue, 14 Apr 2020 14:56:20 +0800 Subject: [PATCH] fix #187 console Upper Case bug --- src/components/ConnectionMenu.vue | 4 ++-- src/rawCommand.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ConnectionMenu.vue b/src/components/ConnectionMenu.vue index eebd028..8fb9c61 100644 --- a/src/components/ConnectionMenu.vue +++ b/src/components/ConnectionMenu.vue @@ -84,7 +84,7 @@ export default { // open Connections.vue menu this.$parent.$parent.$parent.$refs.connectionMenu.open(this.config.connectionName); // open connection - this.$parent.$parent.$parent.openConnection(this.config.connectionName); + this.$parent.$parent.$parent.openConnection(); } else { @@ -97,7 +97,7 @@ export default { // open Connections.vue menu this.$parent.$parent.$parent.$refs.connectionMenu.open(this.config.connectionName); // open connection - this.$parent.$parent.$parent.openConnection(this.config.connectionName, () => { + this.$parent.$parent.$parent.openConnection(() => { this.$bus.$emit('openCli', this.client, this.config.connectionName); }); } diff --git a/src/rawCommand.js b/src/rawCommand.js index a5a9e2d..852b454 100644 --- a/src/rawCommand.js +++ b/src/rawCommand.js @@ -10,7 +10,7 @@ export default { return this.message.clientEmpty; } - const operation = params[0]; + const operation = params[0] ? params[0].toLowerCase() : ''; if (!operation || typeof client[operation] != 'function') { return this.message.unknownCommand;