|
@@ -534,9 +534,18 @@ const tableEvents = {
|
|
}
|
|
}
|
|
VerifySpiderConfig(mark).then(r => {
|
|
VerifySpiderConfig(mark).then(r => {
|
|
console.log("验证爬虫结果", r)
|
|
console.log("验证爬虫结果", r)
|
|
|
|
+ if (r.err === 1 && r.ret) {
|
|
|
|
+ verifySpiderDialog.value.dialogVisible = true
|
|
|
|
+ verifySpiderDialog.value.formData = r.ret
|
|
|
|
+ } else {
|
|
|
|
+ return ElMessage({
|
|
|
|
+ message: r.msg || '验证异常',
|
|
|
|
+ type: 'error',
|
|
|
|
+ duration: 3000,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }).finally(() => {
|
|
loading.value = false
|
|
loading.value = false
|
|
- verifySpiderDialog.value.dialogVisible = true
|
|
|
|
- verifySpiderDialog.value.formData = r
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleSubmit(index, row) {
|
|
handleSubmit(index, row) {
|