diff --git a/backend/app/service/app_install.go b/backend/app/service/app_install.go index c948a16ad..210b5b9ed 100644 --- a/backend/app/service/app_install.go +++ b/backend/app/service/app_install.go @@ -709,6 +709,22 @@ func (a *AppInstallService) GetParams(id uint) (*response.AppConfig, error) { } } appParam.Values = form.Values + } else if form.Type == "apps" { + if m, ok := form.Child.(map[string]interface{}); ok { + result := make(map[string]string) + for key, value := range m { + if strVal, ok := value.(string); ok { + result[key] = strVal + } + } + if envKey, ok := result["envKey"]; ok { + serviceName := envs[envKey] + if serviceName != nil { + appInstall, _ := appInstallRepo.GetFirst(appInstallRepo.WithServiceName(serviceName.(string))) + appParam.ShowValue = appInstall.Name + } + } + } } params = append(params, appParam) } else {