* [misc] Fix scroll error.

This commit is contained in:
liugang
2026-01-07 14:26:29 +08:00
parent 7fe50b791f
commit a7c342f385
+3 -3
View File
@@ -47,10 +47,10 @@ $(function()
const executedKeys = response.executedKeys;
const executedCount = executedKeys.length;
$('#changeBox .change-item').removeClass('executed');
$('#changesBox .change-item').removeClass('executed');
executedKeys.forEach(function(key)
{
$('#changeBox .change-item[data-key="' + key + '"]').addClass('executed');
$('#changesBox .change-item[data-key="' + key + '"]').addClass('executed');
});
$('#executedCount').text(executedCount);
@@ -111,7 +111,7 @@ $(function()
/* 更新版本列表状态为正在升级 */
const $versionItem = $('#versionsBox .version-item[data-version="' + currentVersion + '"]');
$versionItem.scrollIntoView({behavior: 'smooth', block: 'nearest'});
$versionItem[0].scrollIntoView({behavior: 'smooth', block: 'nearest'});
$versionItem.find('.icon').replaceWith('<i class="icon icon-spinner-indicator text-xl text-gray-400"></i>');
/* 启动轮询获取升级进度 */