fix: 数据库提示问题修复

This commit is contained in:
meilin.huang
2023-06-20 17:08:13 +08:00
parent a53e7e7dab
commit 414de9f2eb
4 changed files with 5 additions and 5 deletions

View File

@@ -495,7 +495,7 @@ const registerSqlCompletionItemProvider = () => {
const secondToken = tokens.length > 2 && tokens[tokens.length - 2].toLowerCase() || ''
// const dbs = nowTab.params?.dbs?.split(' ') || [];
const dbs = db ? [db] : [];
const dbs = nowTab.params && nowTab.params.dbs && nowTab.params.dbs.split(' ') || [];
// console.log("光标前文本:=>" + textBeforePointerMulti)
// console.log("最后输入的:=>" + lastToken)

View File

@@ -3,7 +3,7 @@
<el-table @cell-dblclick="(row: any, column: any, cell: any, event: any) => cellClick(row, column, cell)"
@sort-change="(sort: any) => onTableSortChange(sort)" @selection-change="onDataSelectionChange"
:data="datas" size="small" :max-height="tableHeight" v-loading="loading" element-loading-text="查询中..."
:empty-text="emptyText" stripe border class="mt5">
:empty-text="emptyText" highlight-current-row stripe border class="mt5">
<el-table-column v-if="datas.length > 0 && table" type="selection" width="35" />
<el-table-column min-width="100" :width="DbInst.flexColumnWidth(item, datas)" align="center"
v-for="item in columnNames" :key="item" :prop="item" :label="item" show-overflow-tooltip