Merge branch 'master' into feat/proxy-amend

Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
This commit is contained in:
Rick 2025-03-04 19:57:10 +08:00 committed by GitHub
commit 61be759c09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -24,25 +24,26 @@ watch(store, (s) => {
return
}
})
currentDatabase.value = ''
sqlQuery.value = ''
executeQuery()
})
const queryDataFromTable = (data) => {
sqlQuery.value = `select * from ${data.label} limit 10`
executeQuery()
}
const queryTables = () => {
sqlQuery.value = `show tables`
sqlQuery.value = ``
executeQuery()
}
watch(kind, (k) => {
switch (k) {
case 'atest-store-orm':
sqlQuery.value = ''
queryTip.value = 'Enter SQL query'
executeQuery()
break;
case 'atest-store-etcd':
case 'atest-store-redis':
sqlQuery.value = ''
queryTip.value = 'Enter key'
break;
}