优化数据源初始化和获取逻辑

This commit is contained in:
暮光:城中城
2020-05-16 08:54:11 +08:00
parent 18d8105344
commit c89f3696ea
15 changed files with 106 additions and 124 deletions

View File

@@ -104,7 +104,7 @@
mounted: function () {
let that = this;
this.sqlExecutorEditor = this.initAceEditor("sqlExecutorEditor", 6);
this.sqlExecutorEditor.setFontSize(18);
this.sqlExecutorEditor.setFontSize(16);
this.sqlExecutorEditor.commands.addCommand({
name: "execute-sql",
bindKey: {win: "Ctrl-R|Ctrl-Shift-R|Ctrl-Enter", mac: "Command-R|Command-Shift-R|Command-Enter"},
@@ -305,7 +305,7 @@
enableSnippets: true,
enableLiveAutocompletion: true,
minLines: minLines,
maxLines: 30,
maxLines: 40,
});
},
}