Fix dashboard refresh

This commit is contained in:
世界
2025-11-26 22:25:48 +08:00
parent 437fe7ac31
commit f5a02d9da0
15 changed files with 32 additions and 65 deletions
@@ -2,7 +2,7 @@ import Library
import SwiftUI
public struct GroupListView: View {
@EnvironmentObject private var commandClient: CommandClient
@EnvironmentObject private var environments: ExtensionEnvironments
@StateObject private var viewModel = GroupListViewModel()
public init() {}
@@ -23,7 +23,7 @@ public struct GroupListView: View {
}
}
.onAppear {
viewModel.setCommandClient(commandClient)
viewModel.setCommandClient(environments.commandClient)
viewModel.connect()
}
}