mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
[SSL证书]选择证书表格中显示是否已经选择
This commit is contained in:
@@ -95,7 +95,13 @@ Vue.component("ssl-config-box", {
|
||||
// 选择证书
|
||||
selectCert: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/certs/selectPopup", {
|
||||
let selectedCertIds = []
|
||||
if (this.policy != null && this.policy.certs.length > 0) {
|
||||
this.policy.certs.forEach(function (cert) {
|
||||
selectedCertIds.push(cert.id.toString())
|
||||
})
|
||||
}
|
||||
teaweb.popup("/servers/certs/selectPopup?selectedCertIds=" + selectedCertIds, {
|
||||
width: "50em",
|
||||
height: "30em",
|
||||
callback: function (resp) {
|
||||
|
||||
Reference in New Issue
Block a user