Refactor ViewModel

This commit is contained in:
世界
2025-12-01 17:11:34 +08:00
parent 30492c1191
commit 8e764c56eb
34 changed files with 136 additions and 160 deletions
@@ -22,7 +22,7 @@
@Environment(\.profileEditor) private var profileEditor
public var body: some View {
viewBuilder {
Group {
if viewModel.isLoading {
ProgressView().onAppear {
Task {
@@ -104,7 +104,7 @@
@ViewBuilder
private var defaultEditorView: some View {
viewBuilder {
Group {
if readOnly {
TextEditor(text: .constant(viewModel.profileContent))
} else {