Ver Fonte

feat: 验证参数整理

cuiyalong há 10 meses atrás
pai
commit
03c5e1cf09
1 ficheiros alterados com 16 adições e 1 exclusões
  1. 16 1
      frontend/src/views/CodeList.vue

+ 16 - 1
frontend/src/views/CodeList.vue

@@ -517,7 +517,22 @@ const tableEvents = {
     handleVerify(index, row) {
         onlyClickHighlight(row, '_action_clicked_verify')
         loading.value = true
-        VerifySpiderConfig().then(r => {
+        if (!row.cssmark) {
+            return ElMessage({
+                message: '没有找到标注信息',
+                type: 'error',
+                duration: 3000,
+            })
+        }
+        const mark = {
+            ...row.cssmark,
+            code: row.code,
+            site: row.site,
+            channel: row.channel,
+            href: row.href,
+            modifyuser: row.modifyuser,
+        }
+        VerifySpiderConfig(mark).then(r => {
             console.log("验证爬虫结果", r)
             loading.value = false
             verifySpiderDialog.value.dialogVisible = true