File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
console/atest-ui/src/views Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import type { Pair } from './types'
66import { ElMessage } from ' element-plus'
77import { Codemirror } from ' vue-codemirror'
88import HistoryInput from ' ../components/HistoryInput.vue'
9+ import type { Ref } from ' vue'
910
10- const stores = ref ([] as Store [])
11+ const stores: Ref < Store []> = ref ( [])
1112const kind = ref (' ' )
1213const store = ref (' ' )
1314const sqlQuery = ref (' ' )
1415const queryResult = ref ([] as any [])
15- const queryResultAsJSON = ref (' ' )
16+ const queryResultAsJSON = ref (' ' )
1617const columns = ref ([] as string [])
1718const queryTip = ref (' ' )
1819const loadingStores = ref (true )
@@ -63,6 +64,7 @@ const queryTables = () => {
6364watch (kind , (k ) => {
6465 switch (k ) {
6566 case ' atest-store-orm' :
67+ case ' atest-store-iotdb' :
6668 queryTip .value = ' Enter SQL query'
6769 executeQuery ()
6870 break ;
@@ -178,7 +180,7 @@ const executeQuery = async () => {
178180<template >
179181 <div >
180182 <el-container style =" height : calc (100vh - 50px );" >
181- <el-aside v-if =" kind === 'atest-store-orm'" >
183+ <el-aside v-if =" kind === 'atest-store-orm' || kind === 'atest-store-iotdb' " >
182184 <el-scrollbar >
183185 <el-select v-model =" queryDataMeta.currentDatabase" placeholder =" Select database"
184186 @change =" queryTables" filterable >
You can’t perform that action at this time.
0 commit comments