From abe812666f7a004c36fb9a7ea2d40392dd624590 Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Sat, 6 Dec 2025 16:37:01 +0800 Subject: [PATCH] fix: display auth_code result directly without result_text (#777) - Ensure verification codes always show the raw result value - Links continue to prefer result_text as display label - Fixes display logic in both compact and full modes --- frontend/src/components/AiExtractInfo.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/AiExtractInfo.vue b/frontend/src/components/AiExtractInfo.vue index e70ae473..a5d77696 100644 --- a/frontend/src/components/AiExtractInfo.vue +++ b/frontend/src/components/AiExtractInfo.vue @@ -82,6 +82,11 @@ const isLink = computed(() => { const displayText = computed(() => { if (!aiExtract.value) return ''; + // For auth_code, always show the raw result (verification code) + if (aiExtract.value.type === 'auth_code') { + return aiExtract.value.result; + } + // For links, prefer result_text as display label return aiExtract.value.result_text || aiExtract.value.result; });