From 0f0cd57bdc3fe164ba59ea7e7e0b81b7ebc32ee7 Mon Sep 17 00:00:00 2001 From: samwaf Date: Sat, 30 Dec 2023 21:01:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=B8=BB=E6=9C=BA=E8=BF=9C=E7=AB=AF?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E7=9A=84=E7=89=B9=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- localwaf/src/pages/waf/host/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/localwaf/src/pages/waf/host/index.vue b/localwaf/src/pages/waf/host/index.vue index 167031a..0b2a9b5 100644 --- a/localwaf/src/pages/waf/host/index.vue +++ b/localwaf/src/pages/waf/host/index.vue @@ -181,7 +181,7 @@ @@ -627,6 +627,13 @@ let postdata = { ...that.formData } + if(postdata.remote_host.length==0){ + postdata.remote_host = "http://"+postdata.host + }else{ + if(postdata.remote_host.startsWith("http://")==false || postdata.remote_host.startsWith("http://")==false ){ + postdata.remote_host = "http://"+postdata.remote_host + } + } postdata['ssl'] = Number(postdata['ssl']) this.$request .post('/wafhost/host/add', { @@ -663,6 +670,13 @@ let postdata = { ...that.formEditData } + if(postdata.remote_host.length==0){ + postdata.remote_host = "http://"+postdata.host + }else{ + if(postdata.remote_host.startsWith("http://")==false || postdata.remote_host.startsWith("http://")==false ){ + postdata.remote_host = "http://"+postdata.remote_host + } + } postdata['ssl'] = Number(postdata['ssl']) console.log(postdata) this.$request