From 759b53daa9e722cce0dffed6720f9c9f65f79fb0 Mon Sep 17 00:00:00 2001 From: coolsd Date: Sat, 21 Sep 2024 21:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20templates/index.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 25dc15b..f2f7107 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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';