From d903cc6e3b323b2d7d174cdd8480d11a44ed8666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 23 May 2023 11:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=BA=90=E7=AB=99=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=93=E5=B1=9E=E5=9F=9F=E5=90=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/components/server/origin-list-box.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/web/public/js/components/server/origin-list-box.js b/web/public/js/components/server/origin-list-box.js index 0573444f..89274404 100644 --- a/web/public/js/components/server/origin-list-box.js +++ b/web/public/js/components/server/origin-list-box.js @@ -67,7 +67,19 @@ Vue.component("origin-list-box", { Vue.component("origin-list-table", { props: ["v-origins", "v-origin-type"], data: function () { - return {} + let hasMatchedDomains = false + let origins = this.vOrigins + if (origins != null && origins.length > 0) { + origins.forEach(function (origin) { + if (origin.domains != null && origin.domains.length > 0) { + hasMatchedDomains = true + } + }) + } + + return { + hasMatchedDomains: hasMatchedDomains + } }, methods: { deleteOrigin: function (originId) { @@ -90,12 +102,14 @@ Vue.component("origin-list-table", { {{origin.addr}}   -
+
{{origin.name}} 证书 主机名: {{origin.host}} 端口跟随 + 匹配: {{domain}} + 匹配: 所有域名
{{origin.weight}}