From c2ba769be41e313f4da368f66b4fb9317746cef7 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Fri, 24 Jul 2026 10:21:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9B=86=E6=88=90=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=8C=E6=A0=B7=E4=BF=AE=E5=A4=8D=E7=A9=BA?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/ui.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 }