perf: move server status pane into browser pane, add server node to the top of database tree list

This commit is contained in:
tiny-craft
2023-07-14 16:17:59 +08:00
parent 484cdcf54e
commit 0bc8335eef
9 changed files with 164 additions and 125 deletions

View File

@@ -27,18 +27,6 @@ const message = useMessage()
const expandedKeys = ref([])
const selectedKeys = ref([])
watch(selectedKeys, () => {
const key = selectedKeys.value[0]
// try to remove group name
const kparts = split(key, '/')
const len = size(kparts)
if (len > 1) {
connectionStore.selectedServer = kparts[len - 1]
} else {
connectionStore.selectedServer = selectedKeys.value[0]
}
})
const props = defineProps({
filterPattern: {
type: String,