fix(template): 修复logs.html模板中的AJAX请求处理逻辑
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ching 2025-02-09 20:26:06 +08:00
parent 2cd9b6e106
commit a031049c64

View File

@ -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 = $('<tr>');
if (!log.name) {
row.addClass('empty-name');