优化界面显示

This commit is contained in:
GoEdgeLab
2022-10-30 20:06:38 +08:00
parent 0e33b6bbcd
commit 0bca24f14f
5 changed files with 208 additions and 39 deletions

View File

@@ -30,9 +30,10 @@ func (this *SelectPopupAction) RunGet(params struct {
// TODO 列出常用和最新的证书供用户选择
this.Data["keyword"] = params.Keyword
this.Data["selectedCertIds"] = params.SelectedCertIds
// 已经选择的证书
selectedCertIds := []string{}
var selectedCertIds = []string{}
if len(params.SelectedCertIds) > 0 {
selectedCertIds = strings.Split(params.SelectedCertIds, ",")
}