+
=
@@ -186,7 +186,7 @@
// 清除param
clearAllParam() {
- this.endpoint.paramObj = [];
+ this.editEndpoint.paramObj = [];
this.$nextTick(() => {
this.$refs.paramBoxScrollbar.update();
});
@@ -194,7 +194,7 @@
// 新增param
addParam() {
- this.endpoint.paramObj.push({key: '', value: ''});
+ this.editEndpoint.paramObj.push({key: '', value: ''});
this.$nextTick(() => {
this.$refs.paramBoxScrollbar.update();
});
@@ -202,7 +202,7 @@
// 移除单个param
removeParam(index) {
- this.endpoint.paramObj.splice(index, 1);
+ this.editEndpoint.paramObj.splice(index, 1);
this.$nextTick(() => {
this.$refs.paramBoxScrollbar.update();
});
@@ -224,15 +224,14 @@
// 新增label
addLabel() {
- console.log(123123);
- this.endpoint.labelModule.push({key: '', value: ''});
+ this.editEndpoint.labelModule.push({key: '', value: ''});
this.$nextTick(() => {
this.$refs.labelBoxScrollbar.update();
});
},
// 移除单个Label
removeLabel(index) {
- this.endpoint.labelModule.splice(index, 1);
+ this.editEndpoint.labelModule.splice(index, 1);
this.$nextTick(() => {
this.$refs.labelBoxScrollbar.update();
});
diff --git a/nezha-fronted/src/components/common/rightBox/moduleBox.vue b/nezha-fronted/src/components/common/rightBox/moduleBox.vue
index ef44dd91d..f8be462b0 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 8f6cdcbc9..262fcbbcd 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)