From bfe00cc98fd364faf693135b71b552f8e4b8d19c Mon Sep 17 00:00:00 2001 From: SuperManTouX <93423476+SuperManTouX@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:31:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=A4=9A=E4=BD=99toast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/history/history_detail_scripts.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/js/history/history_detail_scripts.js b/js/history/history_detail_scripts.js index abb91de..66cdbc4 100644 --- a/js/history/history_detail_scripts.js +++ b/js/history/history_detail_scripts.js @@ -466,15 +466,11 @@ async function triggerReprocess(includeTranslation) { return; } - // 显示处理中 Toast - showToast('正在准备文档...', 'info'); try { // 将 Base64 转为 File 对象 const file = base64ToFile(pdfBase64, docName); - // 执行 OCR - showToast('正在进行 OCR 识别...', 'info'); const ocrResult = await performOcr(file, (current, total, msg) => { showToast(`${msg || 'OCR 处理中'} (${current}/${total})`, 'info', 5000); @@ -493,7 +489,6 @@ async function triggerReprocess(includeTranslation) { // 如果需要翻译,执行翻译 if (includeTranslation) { - showToast('正在进行翻译...', 'info'); try { const translationResult = await performTranslation(ocrResult.markdown, (current, total, msg) => { @@ -515,7 +510,6 @@ async function triggerReprocess(includeTranslation) { } // 保存到 IndexedDB - showToast('正在保存...', 'info'); await saveResultToDB(window.data); // 刷新页面显示 @@ -710,7 +704,6 @@ async function triggerReprocessWithMinerU() { const savedMineruMode = localStorage.getItem('mineruMode'); try { - showToast('正在使用 MinerU 处理文档...', 'info'); // 临时设置 OCR 配置为 MinerU + 结构化翻译模式 localStorage.setItem('ocrEngine', 'mineru');