更新 templates/index.html
This commit is contained in:
parent
c410ec8a58
commit
759b53daa9
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user