去掉性能测试名称特殊字符校验
This commit is contained in:
parent
86630d0115
commit
7205b02a8f
|
@ -210,13 +210,9 @@
|
|||
this.$router.push({path: '/performance/test/all'})
|
||||
},
|
||||
validTestPlan() {
|
||||
let reg = /^[\u4e00-\u9fa5_a-zA-Z0-9\s.·-]+$/;
|
||||
if (!this.testPlan.name) {
|
||||
this.$error(this.$t('load_test.test_name_is_null'));
|
||||
return false;
|
||||
} else if (!reg.test(this.testPlan.name)) {
|
||||
this.$error(this.$t('load_test.special_characters_are_not_supported'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.testPlan.projectId) {
|
||||
|
|
Loading…
Reference in New Issue