feat: execute selected query

This commit is contained in:
Fabio Di Stasio 2022-07-19 15:02:17 +02:00
parent cb038b374a
commit 78902639eb
1 changed files with 4 additions and 0 deletions

View File

@ -294,6 +294,10 @@ watch(selectedSchema, () => {
const runQuery = async (query: string) => {
if (!query || isQuering.value) return;
isQuering.value = true;
const selectedQuery = queryEditor.value.editor.getSelectedText();
if (selectedQuery) query = selectedQuery;
clearTabData();
queryTable.value.resetSort();