From 03ac01d21f791d87d4e790ec23e60aeb219ee916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 19 Oct 2021 16:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81UserAgent=E5=92=8C=E6=98=AF=E5=90=A6=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/health-check-config-box.js | 90 +++++++++++-------- 1 file changed, 55 insertions(+), 35 deletions(-) diff --git a/web/public/js/components/common/health-check-config-box.js b/web/public/js/components/common/health-check-config-box.js index 729a376e..fbc35617 100644 --- a/web/public/js/components/common/health-check-config-box.js +++ b/web/public/js/components/common/health-check-config-box.js @@ -18,7 +18,9 @@ Vue.component("health-check-config-box", { tryDelay: {count: 100, unit: "ms"}, autoDown: true, countUp: 1, - countDown: 3 + countDown: 3, + userAgent: "", + onlyBasicRequest: false } let that = this setTimeout(function () { @@ -72,7 +74,8 @@ Vue.component("health-check-config-box", { urlProtocol: urlProtocol, urlHost: urlHost, urlPort: urlPort, - urlRequestURI: urlRequestURI + urlRequestURI: urlRequestURI, + urlIsEditing: healthCheckConfig.url.length == 0 } }, watch: { @@ -142,6 +145,9 @@ Vue.component("health-check-config-box", { return status } }) + }, + editURL: function () { + this.urlIsEditing = !this.urlIsEditing } }, template: `
@@ -162,41 +168,41 @@ Vue.component("health-check-config-box", { URL * - - - - - - - - - - - - - - - - - -
协议 - -
域名 - -

在此集群上可以访问到的一个域名。

-
端口 - -
RequestURI
-
-

拼接后的URL:{{healthCheck.url}},其中\${host}指的是域名。

+
{{healthCheck.url}}   修改
+
+ + + + + + + + + + + + + + + + + +
协议 + +
域名 + +

在此集群上可以访问到的一个域名。

+
端口 + +
RequestURI
+
+

拼接后的URL:{{healthCheck.url}},其中\${host}指的是域名。

+
- - - 检测时间间隔 @@ -258,6 +264,20 @@ Vue.component("health-check-config-box", { + + 终端信息(User-Agent) + + +

发送到服务器的User-Agent值,不填写表示使用默认值。

+ + + + 只基础请求 + + +

只做基础的请求,不处理反向代理(不检查源站)、WAF等。

+ +