Browse Source

fix: 解决本地应用删除版本文件夹,页面版本没有删除的问题 (#1510)

pull/1511/head
zhengkunwang223 1 year ago committed by GitHub
parent
commit
b780df96af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      backend/app/service/app.go

4
backend/app/service/app.go

@ -470,9 +470,13 @@ func (a AppService) SyncAppListFromLocal() {
oldDetail, exist := appDetails[version] oldDetail, exist := appDetails[version]
if exist { if exist {
newDetail.ID = oldDetail.ID newDetail.ID = oldDetail.ID
delete(appDetails, version)
} }
app.Details[i] = newDetail app.Details[i] = newDetail
} }
for _, v := range appDetails {
app.Details = append(app.Details, v)
}
} }
app.TagsKey = append(app.TagsKey, constant.AppResourceLocal) app.TagsKey = append(app.TagsKey, constant.AppResourceLocal)
apps[app.Key] = app apps[app.Key] = app

Loading…
Cancel
Save