fix(接口测试): 修复jmeter不填写路径导出的jmx文件导入到ms内,添加路径无法测试的缺陷
--bug=1025277 --user=王孝刚 【接口测试】github#23416,jmeter不填写路径导出的jmx文件导入到ms内,添加路径无法测试 https://www.tapd.cn/55049933/s/1361124
This commit is contained in:
parent
f9a49bc3d3
commit
099a5dfdcf
|
@ -250,10 +250,7 @@ export default {
|
|||
required: true,
|
||||
message: this.$t('api_test.definition.request.path_info'),
|
||||
trigger: 'blur',
|
||||
},
|
||||
{
|
||||
validator: validateURL,
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
userId: [
|
||||
|
|
|
@ -145,6 +145,12 @@ export default {
|
|||
ApiSyncCaseConfig,
|
||||
},
|
||||
data() {
|
||||
let validateURL = (rule, value, callback) => {
|
||||
if (!this.api.request.path.startsWith('/')) {
|
||||
callback(this.$t('api_test.definition.request.path_valid_info'));
|
||||
}
|
||||
callback();
|
||||
};
|
||||
return {
|
||||
visible: false,
|
||||
api: {},
|
||||
|
@ -170,6 +176,7 @@ export default {
|
|||
required: true,
|
||||
message: this.$t('api_test.definition.request.path_info'),
|
||||
trigger: 'blur',
|
||||
validator: validateURL,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue