mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-10 04:16:29 +08:00
fix: fix issue with blank description (#8617)
This commit is contained in:
parent
8a9f70851b
commit
788e7e6261
1 changed files with 4 additions and 1 deletions
|
|
@ -66,8 +66,11 @@ func (i *App) GetDescription(ctx *gin.Context) string {
|
|||
if desc, ok := translations[lang]; ok && desc != "" {
|
||||
return desc
|
||||
}
|
||||
if lang == "zh" {
|
||||
if lang == "zh" && i.ShortDescZh != "" {
|
||||
return i.ShortDescZh
|
||||
}
|
||||
if desc, ok := translations["en"]; ok && desc != "" {
|
||||
return desc
|
||||
}
|
||||
return i.ShortDescEn
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue