更新 templates/index.html

This commit is contained in:
coolsd 2024-09-21 21:00:16 +08:00
parent c410ec8a58
commit 759b53daa9

View File

@ -800,7 +800,7 @@ function fetchCommandResults() {
}
// 按时间正序排列结果
results.sort((a, b) => new Date(a.timestamp) - new Date(b.timestamp));
// 显示最新的结果最多10条
// 显示最新的结果(最多10条)
results.slice(-10).forEach(result => {
const resultItem = document.createElement('div');
resultItem.className = 'result-item';