fix: 上传成功后按钮状态改为翻译中
上传PDF成功后立即更新按钮文字为翻译中...而不是保持上传中...
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user