feat: unify moba workspace and persist session tree layout

This commit is contained in:
liumangmang
2026-04-10 11:04:21 +08:00
parent bba36a2e12
commit f606d20000
27 changed files with 1383 additions and 426 deletions

View File

@@ -10,6 +10,8 @@ export function useConnectionSync() {
watch(
() => connectionsStore.connections.length,
(newLength, oldLength) => {
if (!treeStore.hydrated) return
if (newLength > oldLength) {
// New connection added
treeStore.syncNewConnections()
@@ -24,6 +26,7 @@ export function useConnectionSync() {
watch(
() => connectionsStore.connections.map(c => ({ id: c.id, name: c.name })),
(newConnections, oldConnections) => {
if (!treeStore.hydrated) return
if (!oldConnections) return
newConnections.forEach((newConn, index) => {