diff --git a/internal/web/ui.go b/internal/web/ui.go index e2a7efd..e4cc149 100644 --- a/internal/web/ui.go +++ b/internal/web/ui.go @@ -3741,13 +3741,15 @@ func (u *UI) pageAssetIntegrations(w http.ResponseWriter, r *http.Request) { } } if data.AssetIntegration == nil { - data.AssetIntegration = &service.ConfigIntegrationServiceAsset{ - Type: "object_storage", - TypeLabel: "对象存储", - Enabled: true, - ObjectStorage: &service.ObjectStorageConfig{}, + if newMode { + data.AssetIntegration = &service.ConfigIntegrationServiceAsset{ + Type: "object_storage", + TypeLabel: "对象存储", + Enabled: true, + ObjectStorage: &service.ObjectStorageConfig{}, + } + data.AssetIntegrationEditing = true } - data.AssetIntegrationEditing = true } else { data.AssetIntegrationEditing = newMode || editMode }