fix: restore 2925 mail tab focus after resending verification codes

- 吸收 PR #61 的核心改动:重发验证码后切回 2925 邮箱标签页等待新邮件
- 排除 PR 中与当前代码无关的回退:版本号、发布文档与 waiting_interval 倒计时逻辑保持现状
- 影响范围:background 验证码重发与 2925 邮箱轮询流程
This commit is contained in:
QLHazyCoder
2026-04-14 17:08:31 +08:00
parent a4aee4dd61
commit 648c4fea1d
+9
View File
@@ -4821,6 +4821,15 @@ async function requestVerificationCodeResend(step) {
throw new Error(result.error);
}
const currentState = await getState();
if (currentState.mailProvider === '2925') {
const mailTabId = await getTabId('mail-2925');
if (mailTabId) {
await chrome.tabs.update(mailTabId, { active: true });
await addLog(`步骤 ${step}:已切换到 2925 邮箱标签页等待新邮件。`, 'info');
}
}
return Date.now();
}