fix: 集成服务页面同样修复空编辑器问题

This commit is contained in:
tian 2026-07-24 10:21:28 +08:00
parent 7f3dd6a2ef
commit c2ba769be4

View File

@ -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
}