fix #187 console Upper Case bug

This commit is contained in:
qishibo 2020-04-14 14:56:20 +08:00
parent 3d925318fc
commit 7617272d2b
2 changed files with 3 additions and 3 deletions

View File

@ -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);
});
}

View File

@ -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;