Browse Source

fix: 解决升级页面 链接点击不跳转的问题 (#5413)

Refs https://github.com/1Panel-dev/1Panel/issues/5371
pull/5425/head
zhengkunwang 5 months ago committed by GitHub
parent
commit
9bd9700bac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      backend/app/dto/response/app.go
  2. 5
      backend/app/service/app_utils.go

7
backend/app/dto/response/app.go

@ -88,6 +88,12 @@ type AppInstalledDTO struct {
Path string `json:"path"`
}
type AppDetail struct {
Website string `json:"website"`
Document string `json:"document"`
Github string `json:"github"`
}
type AppInstallDTO struct {
ID uint `json:"id"`
Name string `json:"name"`
@ -109,6 +115,7 @@ type AppInstallDTO struct {
AppStatus string `json:"appStatus"`
DockerCompose string `json:"dockerCompose"`
CreatedAt time.Time `json:"createdAt"`
App AppDetail `json:"app"`
}
type DatabaseConn struct {

5
backend/app/service/app_utils.go

@ -1255,6 +1255,11 @@ func handleInstalled(appInstallList []model.AppInstall, updated bool, sync bool)
AppType: installed.App.Type,
Path: installed.GetPath(),
CreatedAt: installed.CreatedAt,
App: response.AppDetail{
Github: installed.App.Github,
Website: installed.App.Website,
Document: installed.App.Document,
},
}
if updated {
installDTO.DockerCompose = installed.DockerCompose

Loading…
Cancel
Save