fix: implement Dashboard view bugs

This commit is contained in:
dalaolala committed 2026-03-05 17:10:36 +08:00
1 parent 2955e15562
commit 8ca0d06147
1 file changed
+14 -2
+14 -2
View File
@@ -268,14 +268,26 @@ const handleServerClick = (data, node) => {
if (data.type === 'server') {
router.push(`/terminal/${data.serverId}`)
} else if (data.type === 'group' && node) {
node.expanded = !node.expanded
if (node.expanded) {
node.expanded = false
handleNodeCollapse(data)
} else {
node.expanded = true
handleNodeExpand(data)
}
}
}
// 处理服务器双击
const handleServerDblClick = (data, node) => {
if (data.type === 'group' && node) {
node.expanded = !node.expanded
if (node.expanded) {
node.expanded = false
handleNodeCollapse(data)
} else {
node.expanded = true
handleNodeExpand(data)
}
}
}