diff --git a/web/public/js/components.js b/web/public/js/components.js index b76e983c..8af13613 100755 --- a/web/public/js/components.js +++ b/web/public/js/components.js @@ -2385,18 +2385,29 @@ Vue.component("http-cache-refs-box", { Vue.component("ssl-certs-box", { props: [ "v-certs", // 证书列表 + "v-cert", // 单个证书 "v-protocol", // 协议:https|tls - "v-view-size", // 弹窗尺寸 - "v-single-mode" // 单证书模式 + "v-view-size", // 弹窗尺寸:normal, mini + "v-single-mode", // 单证书模式 + "v-description" // 描述文字 ], data: function () { let certs = this.vCerts if (certs == null) { certs = [] } + if (this.vCert != null) { + certs.push(this.vCert) + } + + let description = this.vDescription + if (description == null || typeof (description) != "string") { + description = "" + } return { - certs: certs + certs: certs, + description: description } }, methods: { @@ -2461,13 +2472,14 @@ Vue.component("ssl-certs-box", { template: `
-
+
{{cert.name}} / {{cert.dnsNames}} / 有效至{{formatTime(cert.timeEndAt)}}  
- 选择或上传证书后HTTPSTLS服务才能生效。 + 选择或上传证书后HTTPSTLS服务才能生效。 + {{description}}
@@ -4259,6 +4271,9 @@ Vue.component("origin-list-table", {
{{domain}}
+
+ 证书 +
{{origin.weight}}