From a031049c649960222e78f3b26f4a55b49231addd Mon Sep 17 00:00:00 2001 From: Ching Date: Sun, 9 Feb 2025 20:26:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(template):=20=E4=BF=AE=E5=A4=8Dlogs.html?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=B8=AD=E7=9A=84AJAX=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/logs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/logs.html b/templates/logs.html index 448b934..4a6f727 100644 --- a/templates/logs.html +++ b/templates/logs.html @@ -55,11 +55,11 @@ $.ajax({ url: '/scanlogs/today', method: 'GET', - success: function(logs) { + success: function(response) { const tbody = $('#logs-body'); tbody.empty(); - logs.forEach(function(log) { + response.logs.forEach(function(log) { const row = $(''); if (!log.name) { row.addClass('empty-name');