Skip to content

Commit a1c789e

Browse files
authored
fix: cannot query data from orm (#711)
Co-authored-by: rick <[email protected]>
1 parent 2221438 commit a1c789e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

console/atest-ui/src/views/DataManager.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,16 @@ const keyValueDataHandler = (data: QueryData) => {
181181
}
182182
183183
const executeQuery = async () => {
184-
switch (kind.value) {
185-
case 'atest-store-elasticsearch':
186-
case 'atest-store-etcd':
187-
case 'atest-store-redis':
188-
if (sqlQuery.value === '') {
184+
if (sqlQuery.value === '') {
185+
switch (kind.value) {
186+
case 'atest-store-elasticsearch':
187+
case 'atest-store-etcd':
188+
case 'atest-store-redis':
189189
sqlQuery.value = '*'
190-
}
191-
break
192-
default:
193-
sqlQuery.value = ``
190+
break
191+
default:
192+
sqlQuery.value = ''
193+
}
194194
}
195195
return executeWithQuery(sqlQuery.value)
196196
}

0 commit comments

Comments
 (0)