fix: 上传成功后按钮状态改为翻译中

上传PDF成功后立即更新按钮文字为翻译中...而不是保持上传中...
This commit is contained in:
2026-04-16 23:33:40 +08:00
parent 17a442b144
commit e5c9ea322a

View File

@@ -70,6 +70,9 @@ document.getElementById('uploadForm').addEventListener('submit', async function(
currentTranslationId = result.translation_id;
currentTaskId = result.task_id;
// 更新按钮状态为翻译中
btnText.textContent = '翻译中...';
// 如果使用缓存,直接显示结果
if (result.from_cache) {
document.getElementById('cacheNotice').style.display = 'block';