diff --git a/templates/index.html b/templates/index.html
index 79dd230..82ac828 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1088,8 +1088,16 @@
updateAccountLimitDisplay();
});
socket.on('account_update', function(acc) {
+ var isNewAccount = !accounts[acc.id];
accounts[acc.id] = acc;
- updateAccountCard(acc);
+ if (isNewAccount) {
+ // 新账号:重新渲染整个列表
+ renderAccounts();
+ updateAccountLimitDisplay();
+ } else {
+ // 已存在账号:只更新卡片
+ updateAccountCard(acc);
+ }
updateRunningCount();
});
socket.on('task_progress', function(data) { updateAccountProgress(data); });