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

main
liu.shiyi 2 years 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,8 +1123,8 @@ 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) {
@ -1132,8 +1132,9 @@ export default {
} else { } else {
this.getData() this.getData()
} }
} else {
this.$message.error('请输入请求地址')
} }
})
} }
}, },
// //

Loading…
Cancel
Save