From 8c89af5f9274ce18c4381b8bd6440a60bd3aace4 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 10 Nov 2020 16:15:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/rightBox/addEndpointBox.vue | 2 +- .../src/components/common/rightBox/editEndpointBox.vue | 2 +- nezha-fronted/src/components/common/rightBox/moduleBox.vue | 2 +- .../src/components/common/rightBox/trafficSetting/subBox.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index ce4a2fafa..abaeb1300 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -485,7 +485,7 @@ this.inputKeyErr.splice(index, 1); }, validateInput:function(value,index){ - if(!/[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){ + if(!/^[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){ this.inputKeyErr.splice(index,1,true) }else{ this.inputKeyErr.splice(index,1,false) diff --git a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue index 05a002c46..78540c874 100644 --- a/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue @@ -100,7 +100,7 @@
- + = diff --git a/nezha-fronted/src/components/common/rightBox/moduleBox.vue b/nezha-fronted/src/components/common/rightBox/moduleBox.vue index f8be462b0..ef44dd91d 100644 --- a/nezha-fronted/src/components/common/rightBox/moduleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/moduleBox.vue @@ -283,7 +283,7 @@
- + = diff --git a/nezha-fronted/src/components/common/rightBox/trafficSetting/subBox.vue b/nezha-fronted/src/components/common/rightBox/trafficSetting/subBox.vue index 262fcbbcd..8f6cdcbc9 100644 --- a/nezha-fronted/src/components/common/rightBox/trafficSetting/subBox.vue +++ b/nezha-fronted/src/components/common/rightBox/trafficSetting/subBox.vue @@ -81,7 +81,7 @@ this.inputKeyErr.push(false); }, validateInput:function(value,index){ - if(!/[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){ + if(!/^[a-zA-Z_:][a-zA-Z0-9_:]*/.test(value)){ this.inputKeyErr.splice(index,1,true) }else{ this.inputKeyErr.splice(index,1,false)