fix: 集成服务页面同样修复空编辑器问题
This commit is contained in:
parent
7f3dd6a2ef
commit
c2ba769be4
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user