From cc19cd9524c6954d908e9d7d7d86bcb63f2eec1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=88=BA=E8=9E=88?= Date: Tue, 17 Dec 2024 15:28:28 +0800 Subject: [PATCH] fix: exampleUrls --- src/views/snapshot/SearchCard.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/snapshot/SearchCard.vue b/src/views/snapshot/SearchCard.vue index fb32a19..e7067b4 100644 --- a/src/views/snapshot/SearchCard.vue +++ b/src/views/snapshot/SearchCard.vue @@ -157,7 +157,8 @@ const generateRules = errorTry( }) => { const imageId = snapshotImageId[snapshot.value.id]; const importId = snapshotImportId[snapshot.value.id]; - const zipUrl = importId ? getImportUrl(importId) : undefined; + const snapshotUrls = importId ? getImportUrl(importId) : undefined; + const exampleUrls = imageId ? getImagUrl(imageId) : undefined; const s = result.selector; const t = result.nodes[0].at(-1)!; @@ -180,8 +181,8 @@ const generateRules = errorTry( fastQuery: fastQuery || undefined, activityIds: snapshot.value.activityId, matches: s.toString(), - exampleUrls: getImagUrl(imageId), - snapshotUrls: zipUrl, + exampleUrls, + snapshotUrls, }, ], },