Skip to content

Commit bc75393

Browse files
committed
修复TraceIp编辑界面bug
1 parent 7b1952a commit bc75393

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spring-cloud-gray-webui/src/views/gray-decision/components/TraceIp.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ export default {
134134
return flag
135135
},
136136
isValidIP(ip) {
137+
/**
137138
const reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/
138139
return reg.test(ip)
140+
*/
141+
return true
139142
}
140143
}
141144
}

spring-cloud-gray-webui/src/views/gray-decision/components/TraceIps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
},
118118
methods: {
119119
setInfos() {
120-
this.infos.infos = '{"compareMode":"' + this.infos.compareMode + ',"ips":"' + this.infos.ips + '"}'
120+
this.infos.infos = '{"compareMode":"' + this.infos.compareMode + '","ips":"' + this.infos.ips + '"}'
121121
this.$emit('sendInfos', this.infos.infos)
122122
},
123123
clear() {

0 commit comments

Comments
 (0)