mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-02 22:20:22 +08:00
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
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user