Skip to content

Commit

Permalink
feat: use fastQuery (#37)
Browse files Browse the repository at this point in the history
close #37
  • Loading branch information
lisonge committed Nov 9, 2024
1 parent 230410b commit 2c06bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/snapshot/SearchCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const generateRules = errorTry(
const s = result.selector;
const t = result.nodes[0].at(-1)!;
const quickFind = [
const fastQuery = [
(t.quickFind ?? t.idQf) && t.attr.id && s.qfIdValue,
(t.quickFind ?? t.idQf) && t.attr.vid && s.qfVidValue,
(t.quickFind ?? t.textQf) && t.attr.text && s.qfTextValue,
Expand All @@ -177,7 +177,7 @@ const generateRules = errorTry(
desc: `[ChangeMe]本规则由GKD网页端审查工具生成`,
rules: [
{
quickFind: quickFind || undefined,
fastQuery: fastQuery || undefined,
activityIds: snapshot.value.activityId,
matches: s.toString(),
exampleUrls: getImagUrl(imageId),
Expand Down

0 comments on commit 2c06bba

Please sign in to comment.