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等。

+ +