fix(log): 修复

This commit is contained in:
cnlimiter
2026-03-23 02:29:54 +08:00
committed by Mison
parent b39c4a01e2
commit 55a2437710
2 changed files with 29 additions and 29 deletions

View File

@@ -1049,7 +1049,6 @@ function resetButtons() {
elements.cancelBtn.disabled = true;
currentTask = null;
currentBatch = null;
isBatchMode = false;
// 重置完成标志
taskCompleted = false;
batchCompleted = false;
@@ -1275,12 +1274,13 @@ function connectBatchWebSocket(batchId) {
if (!toastShown) {
toastShown = true;
if (data.status === 'completed') {
addLog('success', `[完成] Outlook 批量任务完成!成功: ${data.success}, 失败: ${data.failed}, 跳过: ${data.skipped || 0}`);
const batchLabel = isOutlookBatchMode ? 'Outlook 批量' : '批量';
addLog('success', `[完成] ${batchLabel}任务完成!成功: ${data.success}, 失败: ${data.failed}, 跳过: ${data.skipped || 0}`);
if (data.success > 0) {
toast.success(`Outlook 批量注册完成,成功 ${data.success}`);
toast.success(`${batchLabel}注册完成,成功 ${data.success}`);
loadRecentAccounts();
} else {
toast.warning('Outlook 批量注册完成,但没有成功注册任何账号');
toast.warning(`${batchLabel}注册完成,但没有成功注册任何账号`);
}
} else if (data.status === 'failed') {
addLog('error', '[错误] 批量任务执行失败');