fix:http数据集:点击解析时只校验请求地址

main
liu.shiyi 1 year ago
parent 137ade033b
commit de9a869392

@ -764,7 +764,7 @@ export default {
const reg = /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/ const reg = /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/
if (!reg.test(value)) { if (!reg.test(value)) {
// eslint-disable-next-line no-template-curly-in-string // eslint-disable-next-line no-template-curly-in-string
callback(new Error('请输入请求地址')) callback(new Error('请输入正确的请求地址'))
} else { } else {
callback() callback()
} }
@ -1123,17 +1123,18 @@ export default {
this.getData() this.getData()
} }
} else { } else {
this.$refs.form.validate((valid) => { //
if (valid) { if (this.dataForm.config.url) {
this.getPramsList() this.getPramsList()
// //
if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) { if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) {
this.openParamsSetDialog(true) this.openParamsSetDialog(true)
} else { } else {
this.getData() this.getData()
}
} }
}) } else {
this.$message.error('请输入请求地址')
}
} }
}, },
// //

Loading…
Cancel
Save