diff --git a/backend/app/dto/app.go b/backend/app/dto/app.go index 8175754a8..c91713e8e 100644 --- a/backend/app/dto/app.go +++ b/backend/app/dto/app.go @@ -78,8 +78,8 @@ type AppProperty struct { Name string `json:"name"` Type string `json:"type"` Tags []string `json:"tags"` - ShortDescZh string `json:"shortDescZh"` - ShortDescEn string `json:"shortDescEn"` + ShortDescZh string `json:"shortDescZh" yaml:"shortDescZh"` + ShortDescEn string `json:"shortDescEn" yaml:"shortDescEn"` Description Locale `json:"description"` Key string `json:"key"` Required []string `json:"Required"` diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go index a791c20bf..81c6ca215 100644 --- a/backend/app/service/app_utils.go +++ b/backend/app/service/app_utils.go @@ -1163,12 +1163,11 @@ func handleLocalApp(appDir string) (app *model.App, err error) { app.Website = appDefine.Website app.Github = appDefine.Github app.Document = appDefine.Document - if appDefine.ShortDescZh != "" { - appDefine.Description.Zh = appDefine.ShortDescZh + app.ShortDescZh = appDefine.ShortDescZh } if appDefine.ShortDescEn != "" { - appDefine.Description.En = appDefine.ShortDescEn + app.ShortDescEn = appDefine.ShortDescEn } desc, _ := json.Marshal(appDefine.Description) app.Description = string(desc)